search for: ms_message_new

Displaying 1 result from an estimated 1 matches for "ms_message_new".

2006 Feb 10
0
Multiple frames in packet
...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_terminator(&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)...