Mercurial > hg > svgui
comparison widgets/CSVAudioFormatDialog.h @ 1320:6440ba1ffc86 import-audio-data
Sample range
author | Chris Cannam |
---|---|
date | Thu, 06 Sep 2018 16:26:40 +0100 |
parents | fbda05431ce0 |
children | 4616e1e89189 |
comparison
equal
deleted
inserted
replaced
1319:fbda05431ce0 | 1320:6440ba1ffc86 |
---|---|
32 CSVAudioFormatDialog(QWidget *parent, | 32 CSVAudioFormatDialog(QWidget *parent, |
33 CSVFormat initialFormat, | 33 CSVFormat initialFormat, |
34 int maxDisplayCols = 5); | 34 int maxDisplayCols = 5); |
35 ~CSVAudioFormatDialog(); | 35 ~CSVAudioFormatDialog(); |
36 | 36 |
37 enum CSVSampleRange { | |
38 RangeSigned1 = 0, // -1 .. 1 | |
39 RangeUnsigned255, // 0 .. 255 | |
40 RangeSigned32767, // -32768 .. 32767 | |
41 RangeOther // Other/unknown: Normalise on load | |
42 }; | |
43 | |
37 CSVFormat getFormat() const; | 44 CSVFormat getFormat() const; |
45 CSVSampleRange getSampleRange() const; | |
38 | 46 |
39 protected slots: | 47 protected slots: |
40 void sampleRateChanged(QString); | 48 void sampleRateChanged(QString); |
49 void sampleRangeChanged(int); | |
41 void columnPurposeChanged(int purpose); | 50 void columnPurposeChanged(int purpose); |
42 | 51 |
43 void updateFormatFromDialog(); | 52 void updateFormatFromDialog(); |
44 | 53 |
45 protected: | 54 protected: |
46 CSVFormat m_format; | 55 CSVFormat m_format; |
56 CSVSampleRange m_sampleRange; | |
47 int m_maxDisplayCols; | 57 int m_maxDisplayCols; |
48 | 58 |
49 QLabel *m_sampleRateLabel; | |
50 QComboBox *m_sampleRateCombo; | 59 QComboBox *m_sampleRateCombo; |
60 QComboBox *m_sampleRangeCombo; | |
51 | 61 |
52 QList<QComboBox *> m_columnPurposeCombos; | 62 QList<QComboBox *> m_columnPurposeCombos; |
53 int m_fuzzyColumn; | 63 int m_fuzzyColumn; |
54 }; | 64 }; |
55 | 65 |