search for: libspeex_bits

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

2004 Aug 06
2
question on usage of the libraries
.... If not; please tell me. Ok, here it comes: Is the following code correct for compressing audio? The output I get is so extremely small, but what is more important: if I pass it through zlib, it gets at least 50% smaller! Init: int bitrate = max_bandwidth * 8; speex_bits_init(&libspeex_bits); if (sample_rate > 22050) libspeex_enc_state = speex_encoder_init(&speex_wb_mode); else libspeex_enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_SAMPLING_RATE, &sample_rate);...