comparison data/fileio/WavFileReader.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 54af1e21705c
children 330bcc92507d
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_READER_H_ 16 #ifndef SV_WAV_FILE_READER_H
17 #define _WAV_FILE_READER_H_ 17 #define SV_WAV_FILE_READER_H
18 18
19 #include "AudioFileReader.h" 19 #include "AudioFileReader.h"
20 20
21 #include <sndfile.h> 21 #include <sndfile.h>
22 #include <QMutex> 22 #include <QMutex>
23 #include <QFile>
23 24
24 #include <set> 25 #include <set>
25 26
26 /** 27 /**
27 * Reader for audio files using libsndfile. 28 * Reader for audio files using libsndfile.
64 void updateFrameCount(); 65 void updateFrameCount();
65 void updateDone(); 66 void updateDone();
66 67
67 protected: 68 protected:
68 SF_INFO m_fileInfo; 69 SF_INFO m_fileInfo;
69 SNDFILE *m_file; 70 SNDFILE *m_sndfile;
70 71
71 FileSource m_source; 72 FileSource m_source;
72 QString m_path; 73 QString m_path;
73 QString m_error; 74 QString m_error;
75 QFile m_qfile;
74 76
75 bool m_seekable; 77 bool m_seekable;
76 78
77 mutable QMutex m_mutex; 79 mutable QMutex m_mutex;
78 mutable floatvec_t m_buffer; 80 mutable floatvec_t m_buffer;