diff 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
line wrap: on
line diff
--- a/widgets/CSVAudioFormatDialog.h	Thu Sep 06 13:58:09 2018 +0100
+++ b/widgets/CSVAudioFormatDialog.h	Thu Sep 06 16:26:40 2018 +0100
@@ -34,20 +34,30 @@
                          int maxDisplayCols = 5);
     ~CSVAudioFormatDialog();
 
+    enum CSVSampleRange {
+        RangeSigned1 = 0, //     -1 .. 1
+        RangeUnsigned255, //      0 .. 255
+        RangeSigned32767, // -32768 .. 32767
+        RangeOther        // Other/unknown: Normalise on load
+    };
+    
     CSVFormat getFormat() const;
+    CSVSampleRange getSampleRange() const;
     
 protected slots:
     void sampleRateChanged(QString);
+    void sampleRangeChanged(int);
     void columnPurposeChanged(int purpose);
 
     void updateFormatFromDialog();
 
 protected:
     CSVFormat m_format;
+    CSVSampleRange m_sampleRange;
     int m_maxDisplayCols;
     
-    QLabel *m_sampleRateLabel;
     QComboBox *m_sampleRateCombo;
+    QComboBox *m_sampleRangeCombo;
 
     QList<QComboBox *> m_columnPurposeCombos;
     int m_fuzzyColumn;