Mercurial > hg > svcore
comparison data/fileio/AudioFileReader.h @ 175:b0f4555b625e
* Introduce WritableWaveFileModel, and use it as an output model for audio
real-time plugin transforms. Updates aren't working correctly yet.
author | Chris Cannam |
---|---|
date | Tue, 03 Oct 2006 14:17:37 +0000 |
parents | 4b2ea82fd0ed |
children | 570794f6f6a7 |
comparison
equal
deleted
inserted
replaced
174:f8cf055dbf34 | 175:b0f4555b625e |
---|---|
17 #define _AUDIO_FILE_READER_H_ | 17 #define _AUDIO_FILE_READER_H_ |
18 | 18 |
19 #include <QString> | 19 #include <QString> |
20 #include "model/Model.h" // for SampleBlock | 20 #include "model/Model.h" // for SampleBlock |
21 | 21 |
22 class AudioFileReader | 22 class AudioFileReader : public QObject |
23 { | 23 { |
24 Q_OBJECT | |
25 | |
24 public: | 26 public: |
25 virtual ~AudioFileReader() { } | 27 virtual ~AudioFileReader() { } |
26 | 28 |
27 bool isOK() const { return (m_channelCount > 0); } | 29 bool isOK() const { return (m_channelCount > 0); } |
28 | 30 |
37 * thread-safe -- that is, safe to call from multiple threads with | 39 * thread-safe -- that is, safe to call from multiple threads with |
38 * different arguments on the same object at the same time. | 40 * different arguments on the same object at the same time. |
39 */ | 41 */ |
40 virtual void getInterleavedFrames(size_t start, size_t count, | 42 virtual void getInterleavedFrames(size_t start, size_t count, |
41 SampleBlock &frames) const = 0; | 43 SampleBlock &frames) const = 0; |
44 | |
45 signals: | |
46 void frameCountChanged(); | |
42 | 47 |
43 protected: | 48 protected: |
44 size_t m_frameCount; | 49 size_t m_frameCount; |
45 size_t m_channelCount; | 50 size_t m_channelCount; |
46 size_t m_sampleRate; | 51 size_t m_sampleRate; |