Displaying 1 result from an estimated 1 matches for "ms_fifo_get_write_ptr".
2006 Feb 10
0
Multiple frames in packet
...p;obj->bits);
m->size=speex_bits_write(&obj->bits,m->data,m->size);
ms_queue_put(outq,m);
}
And my decode function
void ms_speex_dec_process(MSSpeexDec *obj)
{
....
m=ms_queue_get(inq);
g_return_if_fail(m!=NULL);
speex_bits_reset(&obj->bits);
ms_fifo_get_write_ptr(outf,gran,(void**)&output);
g_return_if_fail(output!=NULL);
if (m->data!=NULL){
speex_bits_read_from(&obj->bits,m->data,m->size);
/* decode */
int ret = 1;
while( ret != -1 && speex_bits_remaining(&obj->bits) > 0 )...