comparison 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
comparison
equal deleted inserted replaced
264:260032c26c4f 265:e08f486e8d8c
40 40
41 virtual QString getError() const { return m_error; } 41 virtual QString getError() const { return m_error; }
42 42
43 static void getSupportedExtensions(std::set<QString> &extensions); 43 static void getSupportedExtensions(std::set<QString> &extensions);
44 44
45 virtual int getDecodeCompletion() const { return m_completion; }
46
45 virtual bool isUpdating() const { 47 virtual bool isUpdating() const {
46 return m_decodeThread && m_decodeThread->isRunning(); 48 return m_decodeThread && m_decodeThread->isRunning();
47 } 49 }
48 50
49 protected: 51 protected:
50 QString m_path; 52 QString m_path;
51 QString m_error; 53 QString m_error;
52 size_t m_fileSize; 54 size_t m_fileSize;
53 double m_bitrateNum; 55 double m_bitrateNum;
54 size_t m_bitrateDenom; 56 size_t m_bitrateDenom;
57 int m_completion;
55 bool m_done; 58 bool m_done;
56 59
57 unsigned char *m_filebuffer; 60 unsigned char *m_filebuffer;
58 61
59 QProgressDialog *m_progress; 62 QProgressDialog *m_progress;