Displaying 1 result from an estimated 1 matches for "cur_n_bytes_out".
2004 Aug 06
2
question on usage of the libraries
...SPEEX_SET_SAMPLING_RATE,
&sample_rate);
speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_BITRATE, &bitrate);
speex_encoder_ctl(libspeex_enc_state, SPEEX_GET_FRAME_SIZE,
&libspeex_frame_size);
compression:
while(n_samples_todo > 0)
{
int cur_n_bytes_out;
speex_bits_reset(&libspeex_bits);
speex_encode(libspeex_enc_state, &in_float[input_pnt],
&libspeex_bits);
cur_n_bytes_out = speex_bits_nbytes(&libspeex_bits);
speex_bits_write(&libspeex_bits, &(*data_out)[outpu...