comparison data/fileio/BQAFileReader.h @ 1587:b67f5b6a7978 bqaudiostream

Request metadata from bq audio stream
author Chris Cannam
date Tue, 15 Jan 2019 16:43:23 +0000
parents c8fad3c14a2b
children 14747f24ad04
comparison
equal deleted inserted replaced
1584:ff18abb88563 1587:b67f5b6a7978
39 sv_samplerate_t targetRate = 0, 39 sv_samplerate_t targetRate = 0,
40 bool normalised = false, 40 bool normalised = false,
41 ProgressReporter *reporter = 0); 41 ProgressReporter *reporter = 0);
42 virtual ~BQAFileReader(); 42 virtual ~BQAFileReader();
43 43
44 virtual QString getError() const { return m_error; } 44 QString getError() const override { return m_error; }
45 virtual QString getLocation() const { return m_source.getLocation(); } 45 QString getLocation() const override { return m_source.getLocation(); }
46 virtual QString getTitle() const { return m_title; } 46 QString getTitle() const override { return m_title; }
47 virtual QString getMaker() const { return m_maker; } 47 QString getMaker() const override { return m_maker; }
48 virtual TagMap getTags() const { return m_tags; }
49 48
50 static void getSupportedExtensions(std::set<QString> &extensions); 49 static void getSupportedExtensions(std::set<QString> &extensions);
51 static bool supportsExtension(QString ext); 50 static bool supportsExtension(QString ext);
52 static bool supportsContentType(QString type); 51 static bool supportsContentType(QString type);
53 static bool supports(FileSource &source); 52 static bool supports(FileSource &source);
54 53
55 virtual int getDecodeCompletion() const { return m_completion; } 54 int getDecodeCompletion() const override { return m_completion; }
56 55
57 virtual bool isUpdating() const { 56 bool isUpdating() const override {
58 return m_decodeThread && m_decodeThread->isRunning(); 57 return m_decodeThread && m_decodeThread->isRunning();
59 } 58 }
60 59
61 public slots: 60 public slots:
62 void cancelled(); 61 void cancelled();
65 FileSource m_source; 64 FileSource m_source;
66 QString m_path; 65 QString m_path;
67 QString m_error; 66 QString m_error;
68 QString m_title; 67 QString m_title;
69 QString m_maker; 68 QString m_maker;
70 TagMap m_tags;
71 69
72 breakfastquay::AudioReadStream *m_stream; 70 breakfastquay::AudioReadStream *m_stream;
73 71
74 bool m_cancelled; 72 bool m_cancelled;
75 int m_completion; 73 int m_completion;