fixed issue in waveinput where the format would be detected incorrectly

Floating point detection was backwards causing float-based audio to be
detected as integer and vice versa (for >32-bit formats)
This commit is contained in:
itsmattkc
2019-11-30 02:49:19 +11:00
parent e5e68c8947
commit c19cf8f8e6
2 changed files with 27 additions and 10 deletions
+6 -3
View File
@@ -17,16 +17,19 @@ public:
bool open();
bool is_open();
bool is_open() const;
QByteArray read(int length);
QByteArray read(int offset, int length);
void read(int offset, char *buffer, int length);
AudioRenderingParams params();
bool at_end() const;
const AudioRenderingParams& params() const;
void close();
int sample_count();
int sample_count() const;
private:
bool find_str(QFile* f, const char* str);