diff main/MainWindow.cpp @ 1993:64e8701e77b4 import-audio-data

Remove sample range from dialog class now that it's in CSVFormat
author Chris Cannam
date Fri, 07 Sep 2018 18:13:26 +0100
parents 0cdf87d2f05b
children 2b83ca602ece
line wrap: on
line diff
--- a/main/MainWindow.cpp	Fri Sep 07 16:55:46 2018 +0100
+++ b/main/MainWindow.cpp	Fri Sep 07 18:13:26 2018 +0100
@@ -2904,8 +2904,6 @@
         }
     }
 
-    CSVAudioFormatDialog::CSVSampleRange range;
-    
     {
         CSVAudioFormatDialog *dialog = new CSVAudioFormatDialog(this, format);
         if (dialog->exec() != QDialog::Accepted) {
@@ -2913,7 +2911,6 @@
             return;
         }
         format = dialog->getFormat();
-        range = dialog->getSampleRange();
         delete dialog;
     }
     
@@ -2921,9 +2918,6 @@
 
     ProgressDialog *progress = new ProgressDialog
         (tr("Importing audio data..."), true, 0, this, Qt::ApplicationModal);
-
-    //!!! + sample range / scaling
-    (void)range;
     
     WaveFileModel *model = qobject_cast<WaveFileModel *>
         (DataFileReaderFactory::loadCSV