comparison data/fileio/WavFileReader.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 b0f4555b625e
comparison
equal deleted inserted replaced
156:059b0322009c 157:c03ec31005e1
19 #include "AudioFileReader.h" 19 #include "AudioFileReader.h"
20 20
21 #include <sndfile.h> 21 #include <sndfile.h>
22 #include <QMutex> 22 #include <QMutex>
23 23
24 #include <set>
25
24 class WavFileReader : public AudioFileReader 26 class WavFileReader : public AudioFileReader
25 { 27 {
26 public: 28 public:
27 WavFileReader(QString path); 29 WavFileReader(QString path);
28 virtual ~WavFileReader(); 30 virtual ~WavFileReader();
34 * arguments on the same object at the same time. 36 * arguments on the same object at the same time.
35 */ 37 */
36 virtual void getInterleavedFrames(size_t start, size_t count, 38 virtual void getInterleavedFrames(size_t start, size_t count,
37 SampleBlock &frames) const; 39 SampleBlock &frames) const;
38 40
41 static void getSupportedExtensions(std::set<QString> &extensions);
42
39 protected: 43 protected:
40 SF_INFO m_fileInfo; 44 SF_INFO m_fileInfo;
41 SNDFILE *m_file; 45 SNDFILE *m_file;
42 46
43 QString m_path; 47 QString m_path;