search for: recbufferlen

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

Did you mean: rcvbufferlen
2011 Jul 26
0
More frames in one packet
...how can I get the number of bytes speex_decode_int() wrote into the destination buffer? Here small code snippets of my implementation: //********************************************** // Encoding: short* Frame = (short*)malloc(speex_frame_size); speex_bits_reset(enc_bits); for(unsigned int i = 0; RecBufferLen > speex_frame_size * i; i++) { memcpy(Frame, RecBuffer + speex_frame_size * i, speex_frame_size); speex_encode_int(enc_state, Frame, enc_bits); } free((void*)Frame); return speex_bits_write(enc_bits, SendBuffer, SendBufferLen); //********************************************** //Decoding: spe...