search for: lib_speex_init

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

2011 Jan 02
0
Newbie problem with encoding
...and right giving a 1024 raw data block. The sampling rate is 48KHz. I scale and convert this buffer to short[1024]. I have put the relevant code below with comments about what works and what does not. Anything with a number in front is a question. This is just test code to get things working: int lib_speex_init() { int quality = 5; int rate = 16000; int err; // Setup for coding enc_state = NULL; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_wb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); speex_encoder_ctl(enc_state, SPEEX...