Fix QAudioBuffer sampleCount vs. channelCount.
authorMichael Goddard <michael.goddard@nokia.com>
Tue, 21 Feb 2012 05:19:38 +0000 (15:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Feb 2012 06:35:23 +0000 (07:35 +0100)
commitb9e2410a2a096a825d0f266598ae816620238ff1
tree1c1e36cb3a8aced5765de16f3dceae20d8ad7ed0
parentacbefbf5c6ebfe1987f861737687379c65dc9709
Fix QAudioBuffer sampleCount vs. channelCount.

There were some inconsistencies in when the sample count was per channel
or in total.  The docs mention that it is in total, so fix a few cases
where it went wrong and test it.

Change-Id: I55c855911fcde66a218d6cdd327e09ad5406d5a4
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
src/multimedia/audio/qaudiobuffer.cpp
tests/auto/unit/qaudiobuffer/tst_qaudiobuffer.cpp