comparison data/fileio/WavFileReader.h @ 1096:4d9816ba0ebe simple-fft-model

Rework audio file reader API to prefer using std containers
author Chris Cannam
date Mon, 15 Jun 2015 12:19:47 +0100
parents 843f67be0ed9
children 54af1e21705c
comparison
equal deleted inserted replaced
1095:b66734b5f806 1096:4d9816ba0ebe
48 48
49 /** 49 /**
50 * Must be safe to call from multiple threads with different 50 * Must be safe to call from multiple threads with different
51 * arguments on the same object at the same time. 51 * arguments on the same object at the same time.
52 */ 52 */
53 virtual SampleBlock getInterleavedFrames(sv_frame_t start, sv_frame_t count) const; 53 virtual std::vector<float> getInterleavedFrames(sv_frame_t start, sv_frame_t count) const;
54 54
55 static void getSupportedExtensions(std::set<QString> &extensions); 55 static void getSupportedExtensions(std::set<QString> &extensions);
56 static bool supportsExtension(QString ext); 56 static bool supportsExtension(QString ext);
57 static bool supportsContentType(QString type); 57 static bool supportsContentType(QString type);
58 static bool supports(FileSource &source); 58 static bool supports(FileSource &source);
73 QString m_error; 73 QString m_error;
74 74
75 bool m_seekable; 75 bool m_seekable;
76 76
77 mutable QMutex m_mutex; 77 mutable QMutex m_mutex;
78 mutable SampleBlock m_buffer; 78 mutable std::vector<float> m_buffer;
79 mutable sv_frame_t m_bufsiz;
80 mutable sv_frame_t m_lastStart; 79 mutable sv_frame_t m_lastStart;
81 mutable sv_frame_t m_lastCount; 80 mutable sv_frame_t m_lastCount;
82 81
83 bool m_updating; 82 bool m_updating;
84 }; 83 };