comparison data/fileio/MP3FileReader.h @ 297:c022976d18e8

* Merge from sv-match-alignment branch (excluding alignment-specific document). - add aggregate wave model (not yet complete enough to be added as a true model in a layer, but there's potential) - add play solo mode - add alignment model -- unused in plain SV - fix two plugin leaks - add m3u playlist support (opens all files at once, potentially hazardous) - fix retrieval of pre-encoded URLs - add ability to resample audio files on import, so as to match rates with other files previously loaded; add preference for same - add preliminary support in transform code for range and rate of transform input - reorganise preferences dialog, move dark-background option to preferences, add option for temporary directory location
author Chris Cannam
date Fri, 28 Sep 2007 13:56:38 +0000
parents 92e8dbde73cd
children 3a6725f285d6
comparison
equal deleted inserted replaced
296:2b6c99b607f1 297:c022976d18e8
33 enum DecodeMode { 33 enum DecodeMode {
34 DecodeAtOnce, // decode the file on construction, with progress dialog 34 DecodeAtOnce, // decode the file on construction, with progress dialog
35 DecodeThreaded // decode in a background thread after construction 35 DecodeThreaded // decode in a background thread after construction
36 }; 36 };
37 37
38 MP3FileReader(QString path, DecodeMode decodeMode, CacheMode cacheMode); 38 MP3FileReader(QString path,
39 DecodeMode decodeMode,
40 CacheMode cacheMode,
41 size_t targetRate = 0);
39 virtual ~MP3FileReader(); 42 virtual ~MP3FileReader();
40 43
41 virtual QString getError() const { return m_error; } 44 virtual QString getError() const { return m_error; }
42 45
43 virtual QString getTitle() const { return m_title; } 46 virtual QString getTitle() const { return m_title; }
59 size_t m_bitrateDenom; 62 size_t m_bitrateDenom;
60 int m_completion; 63 int m_completion;
61 bool m_done; 64 bool m_done;
62 65
63 unsigned char *m_filebuffer; 66 unsigned char *m_filebuffer;
67 float **m_samplebuffer;
68 size_t m_samplebuffersize;
64 69
65 QProgressDialog *m_progress; 70 QProgressDialog *m_progress;
66 bool m_cancelled; 71 bool m_cancelled;
67 72
68 struct DecoderData 73 struct DecoderData