search for: lib_speex_get_frame_sz

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

2011 Jan 02
0
Newbie problem with encoding
...== NULL) return -100; return speex_resampler_process_interleaved_int(resampler, in, in_length, out, out_length); } So far this seems to do the right thing. 1. The resampled size is alternately two blocks of 341 and one block of 342. I guess 1024/3 isn't integral so the size varies. int lib_speex_get_frame_sz() { // Get the expected frame size int sz; if(enc_state == NULL) return -100; speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &sz); return sz; } This returns 320 as the expected frame size. 1. I assume this is the block size I have to call the encoder with. int lib_spee...