Searched refs:resampler (Results 1 – 6 of 6) sorted by relevance
/frameworks/av/services/audioflinger/tests/ |
D | resampler_tests.cpp | 41 android::AudioBufferProvider *provider, android::AudioResampler *resampler) in resample() argument 51 resampler->resample((int32_t*) output + channels*i, thisFrames, provider); in resample() 93 android::AudioResampler* resampler; in testBufferIncrement() local 95 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 96 resampler->setSampleRate(inputFreq); in testBufferIncrement() 97 resampler->setVolume(android::AudioResampler::UNITY_GAIN_FLOAT, in testBufferIncrement() 104 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement() 110 resampler->reset(); in testBufferIncrement() 112 delete resampler; in testBufferIncrement() 113 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() [all …]
|
/frameworks/av/services/audioflinger/ |
D | test-resample.cpp | 345 AudioResampler* resampler = AudioResampler::create(format, channels, in main() local 351 resampler->setSampleRate(9000); in main() 352 resampler->setSampleRate(12000); in main() 353 resampler->setSampleRate(20000); in main() 354 resampler->setSampleRate(30000); in main() 366 resampler->setSampleRate(1000); in main() 370 resampler->setSampleRate(1000+i); in main() 378 resampler->reset(); in main() 379 delete resampler; in main() 383 AudioResampler* resampler = AudioResampler::create(format, channels, in main() local [all …]
|
D | AudioResampler.cpp | 214 AudioResampler* resampler; in create() local 221 resampler = new AudioResamplerOrder1(inChannelCount, sampleRate); in create() 226 resampler = new AudioResamplerCubic(inChannelCount, sampleRate); in create() 231 resampler = new AudioResamplerSinc(inChannelCount, sampleRate); in create() 236 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality); in create() 243 resampler = new AudioResamplerDyn<float, float, float>(inChannelCount, in create() 248 resampler = new AudioResamplerDyn<int32_t, int16_t, int32_t>(inChannelCount, in create() 251 resampler = new AudioResamplerDyn<int16_t, int16_t, int32_t>(inChannelCount, in create() 259 resampler->init(); in create() 260 return resampler; in create()
|
D | AudioMixer.h | 202 AudioResampler* resampler; member 234 bool doesResample() const { return resampler != NULL; } in doesResample() 235 void resetResampler() { if (resampler != NULL) resampler->reset(); } in resetResampler() 237 size_t getUnreleasedFrames() const { return resampler != NULL ? in getUnreleasedFrames() 238 resampler->getUnreleasedFrames() : 0; }; in getUnreleasedFrames()
|
D | AudioMixer.cpp | 407 t->resampler = NULL; in AudioMixer() 419 delete t->resampler; in ~AudioMixer() 487 t->resampler = NULL; in getTrackName() 567 if (track.resampler && (mixerInFormatChanged || mixerChannelCountChanged)) { in setChannelMasks() 570 delete track.resampler; in setChannelMasks() 571 track.resampler = NULL; in setChannelMasks() 687 delete track.resampler; in deleteTrackName() 688 track.resampler = NULL; in deleteTrackName() 874 delete track.resampler; in setParameter() 875 track.resampler = NULL; in setParameter() [all …]
|
/frameworks/av/services/audioflinger/audio-resampler/ |
D | Android.mk | 8 LOCAL_MODULE := libaudio-resampler
|