search for: out_length

Displaying 3 results from an estimated 3 matches for "out_length".

Did you mean: opt_length
2009 Mar 17
2
Resample UltraWideBand to NarrowBand
...brary in resample this frame in 32KHz to 8KHz. Searching for it in Speex Doc, I found it: SpeexResamplerState *resampler; resampler = speex_resampler_init(nb_channels, input_rate, output_rate, quality, &err); err = speex_resampler_process_int(resampler, channelID, in, &in_length, out, &out_length); But in my source I have one *dataframe where is my payload. How I can use it to resample my frame? Thanks you very much, Thiago. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20090317/e751454a/attachment.htm
2011 Jan 02
0
Newbie problem with encoding
...oder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate); // Set up a resampler to resample to 16K which is wideband mode resampler = speex_resampler_init(2, 48000, 16000, quality, &err); return 0; } int lib_speex_resample(short* in, unsigned int* in_length, short* out, unsigned int* out_length) { // Resample the input frame to 16KHz if(enc_state == 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....
2009 Mar 18
0
Resample UltraWideBand to NarrowBand
...resample this frame in 32KHz to 8KHz. Searching for it in Speex Doc, I found it: SpeexResamplerState *resampler; resampler = speex_resampler_init(nb_channels, input_rate, output_rate, quality, &err); err = speex_resampler_process_int(resampler, channelID, in, &in_length, out, &out_length); But in my source I have one *dataframe where is my payload. How I can use it to resample my frame? Thanks you very much, Thiago. ------------------------------------------------------------------------------ _______________________________________________ Speex-dev mailing list S...