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:
parent
43ffdb6608
commit
194748a1ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user