Displaying 1 result from an estimated 1 matches for "mcopyindex".
2006 Sep 19
0
Multiple frame encode and decode
...ing: narrow band, 8000 khz,20ms,8000 bps.
1 frame encoded size = 20 bytes
1 frame decoded size = 160 bytes, but i got 960
bytes(160 x 6 frames)
Code sample:
Encode:
speex_encode_int(mEncState, input, &mSpxBits);
length = speex_bits_write(&mSpxBits, encodedData,
200);
memcpy(&mRtpBuffer[mCopyIndex],encodedData,length);
Decode:
------
speex_bits_read_from(&mSpxBits, input, inputLength);
while(speex_decode_int(decState, &spxBits, buff) !=
-1)
{
written = mSpxBits.nbBits; //hope i get 160 bytes
}
speex_bits_reset(&mSpxBits);
__________________________________________________
Do Yo...