diff 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
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.h	Wed Feb 04 10:53:38 2009 +0000
+++ b/data/fileio/CodedAudioFileReader.h	Wed Feb 04 12:13:16 2009 +0000
@@ -50,10 +50,15 @@
     CodedAudioFileReader(CacheMode cacheMode, size_t targetRate);
 
     void initialiseDecodeCache(); // samplerate, channels must have been set
+
+    // may throw InsufficientDiscSpace:
     void addSamplesToDecodeCache(float **samples, size_t nframes);
     void addSamplesToDecodeCache(float *samplesInterleaved, size_t nframes);
     void addSamplesToDecodeCache(const SampleBlock &interleaved);
+
+    // may throw InsufficientDiscSpace:
     void finishDecodeCache();
+
     bool isDecodeCacheInitialised() const { return m_initialised; }
 
     void startSerialised(QString id);