stereo decode fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -290,7 +290,7 @@ SpeexDecoder::Decode(void *buffer, int64 *frameCount,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (fHeader->nb_channels == 2) {
|
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++) {
|
for (int i = 0 ; i < fSpeexOutputLength/fFrameSize ; i++) {
|
||||||
*((float*)out_buffer) /= 32000;
|
*((float*)out_buffer) /= 32000;
|
||||||
|
|||||||
Reference in New Issue
Block a user