diff data/fileio/OggVorbisFileReader.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 71dfc6ab3b54
children 822bd7fd526c
line wrap: on
line diff
--- a/data/fileio/OggVorbisFileReader.h	Fri Jun 01 13:56:35 2007 +0000
+++ b/data/fileio/OggVorbisFileReader.h	Wed Jun 06 16:24:55 2007 +0000
@@ -45,6 +45,8 @@
 
     static void getSupportedExtensions(std::set<QString> &extensions);
 
+    virtual int getDecodeCompletion() const { return m_completion; }
+
     virtual bool isUpdating() const {
         return m_decodeThread && m_decodeThread->isRunning();
     }
@@ -59,6 +61,7 @@
     size_t m_fileSize;
     size_t m_bytesRead;
     bool m_cancelled;
+    int m_completion;
  
     static int readPacket(OGGZ *, ogg_packet *, long, void *);
     static int acceptFrames(FishSound *, float **, long, void *);