Mercurial > hg > svcore
diff data/fileio/MP3FileReader.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/MP3FileReader.h Fri Jun 01 13:56:35 2007 +0000 +++ b/data/fileio/MP3FileReader.h Wed Jun 06 16:24:55 2007 +0000 @@ -42,6 +42,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(); } @@ -52,6 +54,7 @@ size_t m_fileSize; double m_bitrateNum; size_t m_bitrateDenom; + int m_completion; bool m_done; unsigned char *m_filebuffer;