Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1349:330bcc92507d | 1350:1bc6f70cb4c7 |
---|---|
15 | 15 |
16 #ifndef SV_WAV_FILE_WRITER_H | 16 #ifndef SV_WAV_FILE_WRITER_H |
17 #define SV_WAV_FILE_WRITER_H | 17 #define SV_WAV_FILE_WRITER_H |
18 | 18 |
19 #include <QString> | 19 #include <QString> |
20 #include <QFile> | 20 |
21 #ifdef Q_OS_WIN | |
22 #include <windows.h> | |
23 #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 | |
24 #endif | |
21 | 25 |
22 #include <sndfile.h> | 26 #include <sndfile.h> |
23 | 27 |
24 #include "base/BaseTypes.h" | 28 #include "base/BaseTypes.h" |
25 | 29 |
67 protected: | 71 protected: |
68 QString m_path; | 72 QString m_path; |
69 sv_samplerate_t m_sampleRate; | 73 sv_samplerate_t m_sampleRate; |
70 int m_channels; | 74 int m_channels; |
71 TempWriteFile *m_temp; | 75 TempWriteFile *m_temp; |
72 SNDFILE *m_sndfile; | 76 SNDFILE *m_file; |
73 QString m_error; | 77 QString m_error; |
74 QFile *m_qfile; | |
75 | 78 |
76 QString getWriteFilename() const; | 79 QString getWriteFilename() const; |
77 }; | 80 }; |
78 | 81 |
79 | 82 |