Displaying 1 result from an estimated 1 matches for "amrdecodeoneframe".
2008 Apr 30
1
decode problem
...destate, SPEEX_SET_ENH, &tmp);
return true;
}
void CMMediaObj::AmrFreeMemory()
{
if (destate){
speex_bits_destroy(&bits);
speex_decoder_destroy(destate);
}
}
#define FRAME_SIZE 320
int CMMediaObj::AmrDecodeOneFrame(char *src,char *dst)
{
speex_bits_read_from(&bits, src, 14);
speex_decode_int(destate, &bits, (short*)dst);
return FRAME_SIZE;
}
My problem is that I hear only strange sound. I receive packet of 14 bytes
for each frame and I call AmrDecodeOneFra...