Demo Spectrum wav data size is not calculated correctly
authorJustin McPherson <justin.mcpherson@nokia.com>
Wed, 13 Oct 2010 01:43:25 +0000 (11:43 +1000)
committerJustin McPherson <justin.mcpherson@nokia.com>
Wed, 13 Oct 2010 01:43:25 +0000 (11:43 +1000)
commitca53010303bca1b686fdd0488e0549c0a42a60a1
tree8730259b47d0158be6800010a1dba5ef3e429949
parent8f114382b0e0f03ced3559604da41a01b44ecc66
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
demos/spectrum/app/wavfile.cpp
demos/spectrum/app/wavfile.h