/frameworks/av/services/audioflinger/ |
AudioResampler.cpp | 102 if (property_get("af.resampler.quality", value, NULL) > 0) { 140 // read the resampler default quality property the first time it is needed 151 // naive implementation of CPU load throttling doesn't account for whether resampler is active 157 ALOGV("resampler load %u -> %u MHz due to delta +%u MHz from quality %d", 182 AudioResampler* resampler; local 188 ALOGV("Create linear Resampler"); 189 resampler = new AudioResamplerOrder1(bitDepth, inChannelCount, sampleRate); 192 ALOGV("Create cubic Resampler"); 193 resampler = new AudioResamplerCubic(bitDepth, inChannelCount, sampleRate); 196 ALOGV("Create HIGH_QUALITY sinc Resampler"); [all...] |
test-resample.cpp | 70 fprintf(stderr," -q resampler quality\n"); 213 AudioResampler* resampler = AudioResampler::create(16, channels, local 217 resampler->setSampleRate(input_freq); 218 resampler->setVolume(0x1000, 0x1000); 223 resampler->resample((int*) output_vaddr, out_frames, &provider); 224 resampler->resample((int*) output_vaddr, out_frames, &provider); 225 resampler->resample((int*) output_vaddr, out_frames, &provider); 226 resampler->resample((int*) output_vaddr, out_frames, &provider); 233 delete resampler; 236 AudioResampler* resampler = AudioResampler::create(16, channels local [all...] |
AudioMixer.h | 89 // This clears out the resampler's input buffer. 193 AudioResampler* resampler; member in struct:android::AudioMixer::track_t 209 bool doesResample() const { return resampler != NULL; } 210 void resetResampler() { if (resampler != NULL) resampler->reset(); } 212 size_t getUnreleasedFrames() const { return resampler != NULL ? 213 resampler->getUnreleasedFrames() : 0; };
|
/system/media/audio_utils/ |
resampler.c | 18 #define LOG_TAG "resampler" 24 #include <audio_utils/resampler.h> 28 struct resampler { struct 30 SpeexResamplerState *speex_resampler; // handle on speex resampler 41 int32_t speex_delay_ns; // delay introduced by speex resampler in ns 46 // speex based resampler 49 static void resampler_reset(struct resampler_itfe *resampler) 51 struct resampler *rsmp = (struct resampler *)resampler; [all...] |
echo_reference.c | 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 member in struct:echo_reference 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); [all...] |
/external/webrtc/src/modules/audio_processing/aec/ |
echo_cancellation.c | 84 void *resampler; member in struct:__anon18322 121 if (WebRtcAec_CreateResampler(&aecpc->resampler) == -1) { 193 WebRtcAec_FreeResampler(aecpc->resampler); 226 if (WebRtcAec_InitResampler(aecpc->resampler, aecpc->scSampFreq) == -1) { 329 newNrOfSamples = WebRtcAec_ResampleLinear(aecpc->resampler, 434 retVal = WebRtcAec_GetSkew(aecpc->resampler, skew, &aecpc->skew);
|
/device/samsung/manta/audio/ |
audio_hw.c | 41 #include <audio_utils/resampler.h> 176 struct resampler_itfe *resampler; member in struct:stream_in 758 /* if no supported sample rate is available, use the resampler */ 759 if (in->resampler) 760 in->resampler->reset(in->resampler); 873 if (in->resampler != NULL) { 874 in->resampler->resample_from_provider(in->resampler, 894 * in->resampler->resample_from_provider() * [all...] |
/device/ti/panda/audio/ |
audio_hw.c | 45 #include <audio_utils/resampler.h> 606 struct resampler_itfe *resampler; member in struct:omap4_stream_out 625 struct resampler_itfe *resampler; member in struct:omap4_stream_in [all...] |
/device/samsung/tuna/audio/ |
audio_hw.c | 35 #include <audio_utils/resampler.h> 681 struct resampler_itfe *resampler; member in struct:tuna_stream_out 721 struct resampler_itfe *resampler; member in struct:tuna_stream_in [all...] |