comparison data/fileio/CodedAudioFileReader.h @ 357:b92513201610

* better progress reporting in FileSource * fix set-to-default for audio dials with mappers
author Chris Cannam
date Fri, 04 Jan 2008 17:08:10 +0000
parents c022976d18e8
children 7a66b94ef1c0
comparison
equal deleted inserted replaced
356:ca3b91119482 357:b92513201610
25 class Serialiser; 25 class Serialiser;
26 class Resampler; 26 class Resampler;
27 27
28 class CodedAudioFileReader : public AudioFileReader 28 class CodedAudioFileReader : public AudioFileReader
29 { 29 {
30 Q_OBJECT
31
30 public: 32 public:
31 virtual ~CodedAudioFileReader(); 33 virtual ~CodedAudioFileReader();
32 34
33 enum CacheMode { 35 enum CacheMode {
34 CacheInTemporaryFile, 36 CacheInTemporaryFile,
37 39
38 virtual void getInterleavedFrames(size_t start, size_t count, 40 virtual void getInterleavedFrames(size_t start, size_t count,
39 SampleBlock &frames) const; 41 SampleBlock &frames) const;
40 42
41 virtual size_t getNativeRate() const { return m_fileRate; } 43 virtual size_t getNativeRate() const { return m_fileRate; }
44
45 signals:
46 void progress(int);
42 47
43 protected: 48 protected:
44 CodedAudioFileReader(CacheMode cacheMode, size_t targetRate); 49 CodedAudioFileReader(CacheMode cacheMode, size_t targetRate);
45 50
46 void initialiseDecodeCache(); // samplerate, channels must have been set 51 void initialiseDecodeCache(); // samplerate, channels must have been set