search for: sendbufferlen

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

2011 Jul 26
0
More frames in one packet
...eex_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: speex_bits_reset(dec_bits); speex_bits_read_from(dec_bits, RcvBuffer, RcvBufferLen); return speex_decode_int(dec_state, dec_bits, (spx_int16_t*)DestBuffer); //********************************************** Is this correct what I'...