comparison data/fileio/OggVorbisFileReader.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
22 #include "CodedAudioFileReader.h" 22 #include "CodedAudioFileReader.h"
23 23
24 #include <oggz/oggz.h> 24 #include <oggz/oggz.h>
25 #include <fishsound/fishsound.h> 25 #include <fishsound/fishsound.h>
26 26
27 #include <set>
28
27 class QProgressDialog; 29 class QProgressDialog;
28 30
29 class OggVorbisFileReader : public CodedAudioFileReader 31 class OggVorbisFileReader : public CodedAudioFileReader
30 { 32 {
31 public: 33 public:
32 OggVorbisFileReader(QString path, bool showProgress, CacheMode cacheMode); 34 OggVorbisFileReader(QString path, bool showProgress, CacheMode cacheMode);
33 virtual ~OggVorbisFileReader(); 35 virtual ~OggVorbisFileReader();
34 36
35 virtual QString getError() const { return m_error; } 37 virtual QString getError() const { return m_error; }
38
39 static void getSupportedExtensions(std::set<QString> &extensions);
36 40
37 protected: 41 protected:
38 QString m_path; 42 QString m_path;
39 QString m_error; 43 QString m_error;
40 44