Mercurial > hg > svcore
comparison data/fileio/DecodingWavFileReader.h @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:43:43 +0000 |
parents | f8e3dcbafb4d 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 _DECODING_WAV_FILE_READER_H_ | 16 #ifndef SV_DECODING_WAV_FILE_READER_H |
17 #define _DECODING_WAV_FILE_READER_H_ | 17 #define SV_DECODING_WAV_FILE_READER_H |
18 | 18 |
19 #include "CodedAudioFileReader.h" | 19 #include "CodedAudioFileReader.h" |
20 | 20 |
21 #include "base/Thread.h" | 21 #include "base/Thread.h" |
22 | 22 |
38 virtual ~DecodingWavFileReader(); | 38 virtual ~DecodingWavFileReader(); |
39 | 39 |
40 QString getTitle() const override { return m_title; } | 40 QString getTitle() const override { return m_title; } |
41 QString getMaker() const override { return m_maker; } | 41 QString getMaker() const override { return m_maker; } |
42 | 42 |
43 virtual QString getError() const { return m_error; } | 43 QString getError() const override { return m_error; } |
44 virtual QString getLocation() const { return m_source.getLocation(); } | 44 QString getLocation() const override { return m_source.getLocation(); } |
45 | |
45 static void getSupportedExtensions(std::set<QString> &extensions); | 46 static void getSupportedExtensions(std::set<QString> &extensions); |
46 static bool supportsExtension(QString ext); | 47 static bool supportsExtension(QString ext); |
47 static bool supportsContentType(QString type); | 48 static bool supportsContentType(QString type); |
48 static bool supports(FileSource &source); | 49 static bool supports(FileSource &source); |
49 | 50 |
50 virtual int getDecodeCompletion() const { return m_completion; } | 51 int getDecodeCompletion() const override { return m_completion; } |
51 | 52 |
52 virtual bool isUpdating() const { | 53 bool isUpdating() const override { |
53 return m_decodeThread && m_decodeThread->isRunning(); | 54 return m_decodeThread && m_decodeThread->isRunning(); |
54 } | 55 } |
55 | 56 |
56 public slots: | 57 public slots: |
57 void cancelled(); | 58 void cancelled(); |
73 | 74 |
74 class DecodeThread : public Thread | 75 class DecodeThread : public Thread |
75 { | 76 { |
76 public: | 77 public: |
77 DecodeThread(DecodingWavFileReader *reader) : m_reader(reader) { } | 78 DecodeThread(DecodingWavFileReader *reader) : m_reader(reader) { } |
78 virtual void run(); | 79 void run() override; |
79 | 80 |
80 protected: | 81 protected: |
81 DecodingWavFileReader *m_reader; | 82 DecodingWavFileReader *m_reader; |
82 }; | 83 }; |
83 | 84 |