stereo decode fix

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-01-30 08:17:50 +00:00
parent 8db90088c9
commit 1f82f2a416

View File

@ -290,7 +290,7 @@ SpeexDecoder::Decode(void *buffer, int64 *frameCount,
break;
}
if (fHeader->nb_channels == 2) {
speex_decode_stereo((float*)out_buffer, fSpeexOutputLength, fStereoState);
speex_decode_stereo((float*)out_buffer, fHeader->frame_size, fStereoState);
}
for (int i = 0 ; i < fSpeexOutputLength/fFrameSize ; i++) {
*((float*)out_buffer) /= 32000;