diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-10-13 01:43:25 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-10-13 01:43:25 (GMT) |
commit | ca53010303bca1b686fdd0488e0549c0a42a60a1 (patch) | |
tree | 8730259b47d0158be6800010a1dba5ef3e429949 /demos/spectrum/app/wavfile.h | |
parent | 8f114382b0e0f03ced3559604da41a01b44ecc66 (diff) | |
download | Qt-ca53010303bca1b686fdd0488e0549c0a42a60a1.zip Qt-ca53010303bca1b686fdd0488e0549c0a42a60a1.tar.gz Qt-ca53010303bca1b686fdd0488e0549c0a42a60a1.tar.bz2 |
Demo Spectrum wav data size is not calculated correctly
- Grab length of audio data from Data chunk size
- Read from the device no greater than the audio Data chunk size
Task-number: QTBUG-13779
Reviewed-by: Andrew den Exter
Diffstat (limited to 'demos/spectrum/app/wavfile.h')
-rw-r--r-- | demos/spectrum/app/wavfile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/spectrum/app/wavfile.h b/demos/spectrum/app/wavfile.h index f2f3304..fc14b08 100644 --- a/demos/spectrum/app/wavfile.h +++ b/demos/spectrum/app/wavfile.h @@ -77,6 +77,7 @@ public: private: QAudioFormat m_format; qint64 m_dataLength; + qint64 m_dataPosition; }; #endif |