Displaying 1 result from an estimated 1 matches for "ms_fifo_get_read_ptr".
2006 Feb 10
0
Multiple frames in packet
...do multiple call to encode and thats it. But when I'm
trying to decode,, it doesn't work. Maybe, the problem is my decode
function.
Here is my encode function
void ms_speex_enc_process(MSSpeexEnc *obj)
{
....
Do I need to increase gran value to 640 or read / encode (2 times)
ms_fifo_get_read_ptr(inf,gran,(void**)&input); (gran = 320)
g_return_if_fail(input!=NULL);
/* encode */
speex_bits_reset(&obj->bits);
speex_encode_int(obj->speex_state,(short*)input,&obj->bits);
m=ms_message_new(speex_bits_nbytes(&obj->bits));
//speex_bits_insert_...