speex output length multiply by channel count

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6219 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-01-21 22:25:13 +00:00
parent 43ffdb6608
commit 194748a1ba

View File

@ -140,7 +140,7 @@ speexDecoder::Setup(media_format *inputFormat,
speex_decoder_ctl(fDecoderState, SPEEX_SET_ENH, &enabled);
}
speex_decoder_ctl(fDecoderState, SPEEX_GET_FRAME_SIZE, &fHeader->frame_size);
fSpeexOutputLength = fHeader->frame_size * sizeof(float);
fSpeexOutputLength = fHeader->frame_size * sizeof(float) * fHeader->nb_channels;
if (fHeader->nb_channels == 2) {
SpeexCallback callback;
SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;