comparison data/fileio/CodedAudioFileReader.h @ 544:65d955c4d671

* throw (but do not yet catch!) exception when running out of disc space in coded audio file * simpler (faster?) cache-to-cache move operation in spectrogram, and some other minor fixes
author Chris Cannam
date Wed, 04 Feb 2009 12:13:16 +0000
parents 7a66b94ef1c0
children b98f5daab19e
comparison
equal deleted inserted replaced
543:7a66b94ef1c0 544:65d955c4d671
48 48
49 protected: 49 protected:
50 CodedAudioFileReader(CacheMode cacheMode, size_t targetRate); 50 CodedAudioFileReader(CacheMode cacheMode, size_t targetRate);
51 51
52 void initialiseDecodeCache(); // samplerate, channels must have been set 52 void initialiseDecodeCache(); // samplerate, channels must have been set
53
54 // may throw InsufficientDiscSpace:
53 void addSamplesToDecodeCache(float **samples, size_t nframes); 55 void addSamplesToDecodeCache(float **samples, size_t nframes);
54 void addSamplesToDecodeCache(float *samplesInterleaved, size_t nframes); 56 void addSamplesToDecodeCache(float *samplesInterleaved, size_t nframes);
55 void addSamplesToDecodeCache(const SampleBlock &interleaved); 57 void addSamplesToDecodeCache(const SampleBlock &interleaved);
58
59 // may throw InsufficientDiscSpace:
56 void finishDecodeCache(); 60 void finishDecodeCache();
61
57 bool isDecodeCacheInitialised() const { return m_initialised; } 62 bool isDecodeCacheInitialised() const { return m_initialised; }
58 63
59 void startSerialised(QString id); 64 void startSerialised(QString id);
60 void endSerialised(); 65 void endSerialised();
61 66