Home | History | Annotate | Download | only in audio_utils

Lines Matching refs:resampler

25 #include <audio_utils/resampler.h>
54 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
63 struct resampler_itfe *resampler; // input resampler
64 struct resampler_buffer_provider provider; // resampler buffer provider
126 /* additional space in resampler buffer allowing for extra samples to be returned
127 * by speex resampler when sample rates ratio is not an integer.
165 if (er->resampler != NULL) {
166 er->resampler->reset(er->resampler);
195 // wr_buf is not only used as resampler output but also for stereo to mono conversion
220 if (er->resampler == NULL) {
222 ALOGV("echo_reference_write() new ReSampler(%d, %d)",
231 &er->resampler);
233 er->resampler = NULL;
234 ALOGV("echo_reference_write() failure to create resampler %d", rc);
240 // resampler to get new frames
251 er->resampler->resample_from_provider(er->resampler,
254 "echo_reference_write() er->wr_frames_in not 0 (%d) after resampler",
363 if (er->resampler != NULL) {
364 // Resampler already compensates part of the delay
365 int32_t rsmp_delay = er->resampler->delay_ns(er->resampler);
531 if (er->resampler != NULL) {
532 release_resampler(er->resampler);