Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
| author | Chris Cannam |
|---|---|
| date | Wed, 23 Jan 2019 14:43:43 +0000 |
| parents | ad5f892c0c4d |
| children | 14747f24ad04 |
comparison
equal
deleted
inserted
replaced
| 1598:d2555df635ec | 1599:ce185d4dd408 |
|---|---|
| 11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
| 12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
| 13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #ifndef _MP3_FILE_READER_H_ | 16 #ifndef SV_MP3_FILE_READER_H |
| 17 #define _MP3_FILE_READER_H_ | 17 #define SV_MP3_FILE_READER_H |
| 18 | 18 |
| 19 #ifdef HAVE_MAD | 19 #ifdef HAVE_MAD |
| 20 | 20 |
| 21 #include "CodedAudioFileReader.h" | 21 #include "CodedAudioFileReader.h" |
| 22 | 22 |
| 72 sv_samplerate_t targetRate = 0, | 72 sv_samplerate_t targetRate = 0, |
| 73 bool normalised = false, | 73 bool normalised = false, |
| 74 ProgressReporter *reporter = 0); | 74 ProgressReporter *reporter = 0); |
| 75 virtual ~MP3FileReader(); | 75 virtual ~MP3FileReader(); |
| 76 | 76 |
| 77 virtual QString getError() const { return m_error; } | 77 QString getError() const override { return m_error; } |
| 78 | 78 |
| 79 virtual QString getLocation() const { return m_source.getLocation(); } | 79 QString getLocation() const override { return m_source.getLocation(); } |
| 80 virtual QString getTitle() const { return m_title; } | 80 QString getTitle() const override { return m_title; } |
| 81 virtual QString getMaker() const { return m_maker; } | 81 QString getMaker() const override { return m_maker; } |
| 82 virtual TagMap getTags() const { return m_tags; } | 82 TagMap getTags() const override { return m_tags; } |
| 83 | 83 |
| 84 static void getSupportedExtensions(std::set<QString> &extensions); | 84 static void getSupportedExtensions(std::set<QString> &extensions); |
| 85 static bool supportsExtension(QString ext); | 85 static bool supportsExtension(QString ext); |
| 86 static bool supportsContentType(QString type); | 86 static bool supportsContentType(QString type); |
| 87 static bool supports(FileSource &source); | 87 static bool supports(FileSource &source); |
| 88 | 88 |
| 89 virtual int getDecodeCompletion() const { return m_completion; } | 89 int getDecodeCompletion() const override { return m_completion; } |
| 90 | 90 |
| 91 virtual bool isUpdating() const { | 91 bool isUpdating() const override { |
| 92 return m_decodeThread && m_decodeThread->isRunning(); | 92 return m_decodeThread && m_decodeThread->isRunning(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 public slots: | 95 public slots: |
| 96 void cancelled(); | 96 void cancelled(); |
| 142 | 142 |
| 143 class DecodeThread : public Thread | 143 class DecodeThread : public Thread |
| 144 { | 144 { |
| 145 public: | 145 public: |
| 146 DecodeThread(MP3FileReader *reader) : m_reader(reader) { } | 146 DecodeThread(MP3FileReader *reader) : m_reader(reader) { } |
| 147 virtual void run(); | 147 void run() override; |
| 148 | 148 |
| 149 protected: | 149 protected: |
| 150 MP3FileReader *m_reader; | 150 MP3FileReader *m_reader; |
| 151 }; | 151 }; |
| 152 | 152 |
