Mercurial > hg > svcore
comparison data/fileio/WavFileReader.h @ 1326:54af1e21705c 3.0-integration
Update to use bqvec allocator for float vectors
author | Chris Cannam |
---|---|
date | Tue, 13 Dec 2016 15:23:21 +0000 |
parents | 4d9816ba0ebe |
children | b3cb0edc25cd |
comparison
equal
deleted
inserted
replaced
1325:3aea4f7617bb | 1326:54af1e21705c |
---|---|
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 std::vector<float> getInterleavedFrames(sv_frame_t start, sv_frame_t count) const; | 53 virtual floatvec_t 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 std::vector<float> m_buffer; | 78 mutable floatvec_t m_buffer; |
79 mutable sv_frame_t m_lastStart; | 79 mutable sv_frame_t m_lastStart; |
80 mutable sv_frame_t m_lastCount; | 80 mutable sv_frame_t m_lastCount; |
81 | 81 |
82 bool m_updating; | 82 bool m_updating; |
83 }; | 83 }; |