Displaying 1 result from an estimated 1 matches for "amrfreememory".
2008 Apr 30
1
decode problem
...se
simple lines of code.
bool CMMediaObj::AmrInit()
{
speex_bits_init(&bits);
destate = speex_decoder_init(&speex_nb_mode);
int tmp=1;
speex_decoder_ctl(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...