comparison data/fileio/WavFileWriter.h @ 1348:b3cb0edc25cd 3.0-integration

Update WAV/MP3/BZipFileDevice code to avoid using local 8-bit encoding
author Chris Cannam
date Fri, 06 Jan 2017 16:40:11 +0000
parents 3aea4f7617bb
children 1bc6f70cb4c7
comparison
equal deleted inserted replaced
1347:281a8c9d4886 1348:b3cb0edc25cd
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _WAV_FILE_WRITER_H_ 16 #ifndef SV_WAV_FILE_WRITER_H
17 #define _WAV_FILE_WRITER_H_ 17 #define SV_WAV_FILE_WRITER_H
18 18
19 #include <QString> 19 #include <QString>
20 #include <QFile>
20 21
21 #include <sndfile.h> 22 #include <sndfile.h>
22 23
23 #include "base/BaseTypes.h" 24 #include "base/BaseTypes.h"
24 25
66 protected: 67 protected:
67 QString m_path; 68 QString m_path;
68 sv_samplerate_t m_sampleRate; 69 sv_samplerate_t m_sampleRate;
69 int m_channels; 70 int m_channels;
70 TempWriteFile *m_temp; 71 TempWriteFile *m_temp;
71 SNDFILE *m_file; 72 SNDFILE *m_sndfile;
72 QString m_error; 73 QString m_error;
74 QFile *m_qfile;
73 75
74 QString getWriteFilename() const; 76 QString getWriteFilename() const;
75 }; 77 };
76 78
77 79