Lines Matching defs:resampler
41 android::AudioBufferProvider *provider, android::AudioResampler *resampler)
51 size_t framesResampled = resampler->resample(
95 // create the resampler
96 android::AudioResampler* resampler;
98 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
99 resampler->setSampleRate(inputFreq);
100 resampler->setVolume(android::AudioResampler::UNITY_GAIN_FLOAT,
107 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
113 resampler->reset();
115 delete resampler;
116 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
117 resampler->setSampleRate(inputFreq);
118 resampler->setVolume(android::AudioResampler::UNITY_GAIN_FLOAT,
131 resample(channels, test, outputFrames, outIncr, &provider, resampler);
138 delete resampler;
160 // TI = resampler input type, int16_t or float
161 // TO = resampler output type, int32_t or float
181 // create the resampler
182 android::AudioResampler* resampler;
184 resampler = android::AudioResampler::create(
187 resampler->setSampleRate(inputFreq);
188 resampler->setVolume(android::AudioResampler::UNITY_GAIN_FLOAT,
195 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
226 delete resampler;