Home | History | Annotate | Download | only in audio_utils

Lines Matching defs:resampler

27 #include <audio_utils/resampler.h>
56 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
65 struct resampler_itfe *resampler; // input resampler
66 struct resampler_buffer_provider provider; // resampler buffer provider
128 /* additional space in resampler buffer allowing for extra samples to be returned
129 * by speex resampler when sample rates ratio is not an integer.
167 if (er->resampler != NULL) {
168 er->resampler->reset(er->resampler);
197 // wr_buf is not only used as resampler output but also for stereo to mono conversion
222 if (er->resampler == NULL) {
224 ALOGV("echo_reference_write() new ReSampler(%d, %d)",
233 &er->resampler);
235 er->resampler = NULL;
236 ALOGV("echo_reference_write() failure to create resampler %d", rc);
242 // resampler to get new frames
253 er->resampler->resample_from_provider(er->resampler,
256 "echo_reference_write() er->wr_frames_in not 0 (%d) after resampler",
378 if (er->resampler != NULL) {
379 // Resampler already compensates part of the delay
380 int32_t rsmp_delay = er->resampler->delay_ns(er->resampler);
548 if (er->resampler != NULL) {
549 release_resampler(er->resampler);