comparison data/fileio/DecodingWavFileReader.h @ 1592:f8e3dcbafb4d bqaudiostream

Implement title/maker in wav readers; extra handling of supported-ness for file types
author Chris Cannam
date Mon, 21 Jan 2019 13:16:17 +0000
parents 54af1e21705c
children ce185d4dd408
comparison
equal deleted inserted replaced
1591:6e68bd92ee21 1592:f8e3dcbafb4d
35 sv_samplerate_t targetRate = 0, 35 sv_samplerate_t targetRate = 0,
36 bool normalised = false, 36 bool normalised = false,
37 ProgressReporter *reporter = 0); 37 ProgressReporter *reporter = 0);
38 virtual ~DecodingWavFileReader(); 38 virtual ~DecodingWavFileReader();
39 39
40 QString getTitle() const override { return m_title; }
41 QString getMaker() const override { return m_maker; }
42
40 virtual QString getError() const { return m_error; } 43 virtual QString getError() const { return m_error; }
41 virtual QString getLocation() const { return m_source.getLocation(); } 44 virtual QString getLocation() const { return m_source.getLocation(); }
42 static void getSupportedExtensions(std::set<QString> &extensions); 45 static void getSupportedExtensions(std::set<QString> &extensions);
43 static bool supportsExtension(QString ext); 46 static bool supportsExtension(QString ext);
44 static bool supportsContentType(QString type); 47 static bool supportsContentType(QString type);
53 public slots: 56 public slots:
54 void cancelled(); 57 void cancelled();
55 58
56 protected: 59 protected:
57 FileSource m_source; 60 FileSource m_source;
61 QString m_title;
62 QString m_maker;
58 QString m_path; 63 QString m_path;
59 QString m_error; 64 QString m_error;
60 bool m_cancelled; 65 bool m_cancelled;
61 sv_frame_t m_processed; 66 sv_frame_t m_processed;
62 int m_completion; 67 int m_completion;