Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 157:c03ec31005e1
* Add zoom thumbwheels to Pane. Implement horizontal thumbwheel, and
vertical depending on layer type (supported for waveform and spectrogram,
though wrong for log-scale spectrogram at the moment).
* Add bare bones of a spectrum layer.
* Add window icon
* Add shortcut for "insert time instant" on laptops without keypad enter (";")
* Delete FFT processing thread when it exits (at least, next time we're asked
for something interesting)
* Get audio file extensions from the file readers, and thus from libsndfile for
the wave file reader -- leads to rather a wide combo box in file dialog though
* Better refresh order for spectrogram (redraw centre section first)
author | Chris Cannam |
---|---|
date | Fri, 04 Aug 2006 17:01:37 +0000 |
parents | 1a42221a1522 |
children | 71dfc6ab3b54 |
comparison
equal
deleted
inserted
replaced
156:059b0322009c | 157:c03ec31005e1 |
---|---|
20 | 20 |
21 #include "CodedAudioFileReader.h" | 21 #include "CodedAudioFileReader.h" |
22 | 22 |
23 #include <mad.h> | 23 #include <mad.h> |
24 | 24 |
25 #include <set> | |
26 | |
25 class QProgressDialog; | 27 class QProgressDialog; |
26 | 28 |
27 class MP3FileReader : public CodedAudioFileReader | 29 class MP3FileReader : public CodedAudioFileReader |
28 { | 30 { |
29 public: | 31 public: |
30 MP3FileReader(QString path, bool showProgress, CacheMode cacheMode); | 32 MP3FileReader(QString path, bool showProgress, CacheMode cacheMode); |
31 virtual ~MP3FileReader(); | 33 virtual ~MP3FileReader(); |
32 | 34 |
33 virtual QString getError() const { return m_error; } | 35 virtual QString getError() const { return m_error; } |
36 | |
37 static void getSupportedExtensions(std::set<QString> &extensions); | |
34 | 38 |
35 protected: | 39 protected: |
36 QString m_path; | 40 QString m_path; |
37 QString m_error; | 41 QString m_error; |
38 size_t m_fileSize; | 42 size_t m_fileSize; |