Searched refs:resampler (Results 1 – 6 of 6) sorted by relevance
/frameworks/av/media/libaudioprocessing/tests/ |
D | test-resampler.cpp | 344 AudioResampler* resampler = AudioResampler::create(format, channels, in main() local 350 resampler->setSampleRate(9000); in main() 351 resampler->setSampleRate(12000); in main() 352 resampler->setSampleRate(20000); in main() 353 resampler->setSampleRate(30000); in main() 365 resampler->setSampleRate(1000); in main() 369 resampler->setSampleRate(1000+i); in main() 377 resampler->reset(); in main() 378 delete resampler; in main() 382 AudioResampler* resampler = AudioResampler::create(format, channels, in main() local [all …]
|
D | resampler_tests.cpp | 58 android::AudioBufferProvider *provider, android::AudioResampler *resampler) in resample() argument 68 size_t framesResampled = resampler->resample( in resample() 113 android::AudioResampler* resampler; in testBufferIncrement() local 115 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 116 resampler->setSampleRate(inputFreq); in testBufferIncrement() 117 resampler->setVolume(android::AudioResampler::UNITY_GAIN_FLOAT, in testBufferIncrement() 124 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement() 130 resampler->reset(); in testBufferIncrement() 132 delete resampler; in testBufferIncrement() 133 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() [all …]
|
D | Android.bp | 37 // resampler unit test 58 // build audio resampler test tool 61 name: "test-resampler", 64 srcs: ["test-resampler.cpp"],
|
/frameworks/av/media/libaudioprocessing/tests/fuzzer/ |
D | libaudioprocessing_resampler_fuzzer.cpp | 131 std::unique_ptr<AudioResampler> resampler( in LLVMFuzzerTestOneInput() local 134 resampler->setSampleRate(input_freq); in LLVMFuzzerTestOneInput() 135 resampler->setVolume(left_volume, right_volume); in LLVMFuzzerTestOneInput() 146 resampler->resample((int*)output_data, i, &provider); in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResampler.cpp | 215 AudioResampler* resampler; in create() local 222 resampler = new AudioResamplerOrder1(inChannelCount, sampleRate); in create() 227 resampler = new AudioResamplerCubic(inChannelCount, sampleRate); in create() 232 resampler = new AudioResamplerSinc(inChannelCount, sampleRate); in create() 237 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality); in create() 244 resampler = new AudioResamplerDyn<float, float, float>(inChannelCount, in create() 249 resampler = new AudioResamplerDyn<int32_t, int16_t, int32_t>(inChannelCount, in create() 252 resampler = new AudioResamplerDyn<int16_t, int16_t, int32_t>(inChannelCount, in create() 260 resampler->init(); in create() 261 return resampler; in create()
|
/frameworks/av/media/libaudioprocessing/audio-resampler/ |
D | Android.bp | 11 name: "libaudio-resampler",
|