diff data/fileio/WavFileWriter.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents cc27f35aa75c
children 3aea4f7617bb
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.h	Tue Mar 03 17:09:19 2015 +0000
+++ b/data/fileio/WavFileWriter.h	Wed Mar 04 12:01:04 2015 +0000
@@ -46,7 +46,7 @@
         WriteToTarget
     };
 
-    WavFileWriter(QString path, int sampleRate, int channels,
+    WavFileWriter(QString path, sv_samplerate_t sampleRate, int channels,
                   FileWriteMode mode);
     virtual ~WavFileWriter();
 
@@ -65,7 +65,7 @@
 
 protected:
     QString m_path;
-    int m_sampleRate;
+    sv_samplerate_t m_sampleRate;
     int m_channels;
     TempWriteFile *m_temp;
     SNDFILE *m_file;