diff data/fileio/AudioFileReader.h @ 265:e08f486e8d8c

* Enable threaded decoding for Ogg and MP3 files. Needs some work on reducing updates to the overview widget
author Chris Cannam
date Wed, 06 Jun 2007 16:24:55 +0000
parents 570794f6f6a7
children 822bd7fd526c
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h	Fri Jun 01 13:56:35 2007 +0000
+++ b/data/fileio/AudioFileReader.h	Wed Jun 06 16:24:55 2007 +0000
@@ -42,6 +42,10 @@
     virtual void getInterleavedFrames(size_t start, size_t count,
 				      SampleBlock &frames) const = 0;
 
+    // only subclasses that do not know exactly how long the audio
+    // file is until it's been completely decoded should implement this
+    virtual int getDecodeCompletion() const { return 100; } // %
+
     virtual bool isUpdating() const { return false; }
 
 signals: