waveinput: better handling of WAV data sections

This commit is contained in:
itsmattkc
2020-02-19 12:45:21 +11:00
parent 56adf5005f
commit a719618b31
2 changed files with 21 additions and 6 deletions
+4
View File
@@ -23,6 +23,8 @@ public:
QByteArray read(int offset, int length);
void read(int offset, char *buffer, int length);
bool seek(qint64 pos);
bool at_end() const;
const AudioRenderingParams& params() const;
@@ -36,6 +38,8 @@ public:
private:
bool find_str(QFile* f, const char* str);
qint64 calculate_max_read() const;
AudioRenderingParams params_;
QFile file_;