diff data/fileio/WavFileWriter.h @ 1350:1bc6f70cb4c7 3.0-integration

And similar approach for the writer
author Chris Cannam
date Fri, 06 Jan 2017 21:04:52 +0000
parents b3cb0edc25cd
children 954d0cf29ca7
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.h	Fri Jan 06 20:51:47 2017 +0000
+++ b/data/fileio/WavFileWriter.h	Fri Jan 06 21:04:52 2017 +0000
@@ -17,7 +17,11 @@
 #define SV_WAV_FILE_WRITER_H
 
 #include <QString>
-#include <QFile>
+
+#ifdef Q_OS_WIN
+#include <windows.h>
+#define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
+#endif
 
 #include <sndfile.h>
 
@@ -69,9 +73,8 @@
     sv_samplerate_t m_sampleRate;
     int m_channels;
     TempWriteFile *m_temp;
-    SNDFILE *m_sndfile;
+    SNDFILE *m_file;
     QString m_error;
-    QFile *m_qfile;
 
     QString getWriteFilename() const;
 };