Home
last modified time | relevance | path

Searched refs:samplingRate (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp91 uint32_t samplingRate = UINT_MAX; in pickSamplingRate() local
93 if ((rate < samplingRate) && (rate > 0)) { in pickSamplingRate()
94 samplingRate = rate; in pickSamplingRate()
97 pickedRate = (samplingRate == UINT_MAX) ? 0 : samplingRate; in pickSamplingRate()
224 void PolicyAudioPort::pickAudioProfile(uint32_t &samplingRate, in pickAudioProfile() argument
229 samplingRate = 0; in pickAudioProfile()
260 samplingRate = pickedSamplingRate; in pickAudioProfile()
266 asAudioPort()->getName().c_str(), samplingRate, channelMask, format); in pickAudioProfile()
DAudioProfileVectorHelper.cpp167 uint32_t samplingRate, in checkExact() argument
173 audioProfile->supportsRate(samplingRate)) { in checkExact()
180 uint32_t samplingRate, in checkCompatibleSamplingRate() argument
183 ALOG_ASSERT(samplingRate > 0); in checkCompatibleSamplingRate()
187 updatedSamplingRate = samplingRate; in checkCompatibleSamplingRate()
194 auto desiredRate = sampleRates.lower_bound(samplingRate); in checkCompatibleSamplingRate()
198 if (*desiredRate / AUDIO_RESAMPLER_DOWN_RATIO_MAX <= samplingRate) { in checkCompatibleSamplingRate()
206 if (candidate * AUDIO_RESAMPLER_UP_RATIO_MAX >= samplingRate) { in checkCompatibleSamplingRate()
310 const uint32_t samplingRate, in checkExactProfile() argument
319 if (checkExact(profile, samplingRate, channelMask, format) == NO_ERROR) { in checkExactProfile()
[all …]
DIOProfile.cpp28 uint32_t samplingRate, in isCompatibleProfile() argument
51 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) || in isCompatibleProfile()
58 uint32_t myUpdatedSamplingRate = samplingRate; in isCompatibleProfile()
61 .sample_rate = samplingRate, in isCompatibleProfile()
/frameworks/base/media/java/android/media/
DAudioDevicePortConfig.java33 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument
35 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local
39 this(config.port(), config.samplingRate(), config.channelMask(), config.format(), in AudioDevicePortConfig()
DAudioPortConfig.java58 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, in AudioPortConfig() argument
61 mSamplingRate = samplingRate; in AudioPortConfig()
79 public int samplingRate() { in samplingRate() method in AudioPortConfig
DAudioMixPortConfig.java33 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument
35 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
DAudioMixPort.java57 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
59 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioDevicePort.java128 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
130 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp398 int32_t samplingRate = mConfig->samplingRate; in process() local
430 } else if (mConfig->samplingRate != samplingRate in process()
433 samplingRate, mConfig->samplingRate, in process()
435 samplingRate = mConfig->samplingRate; in process()
438 C2StreamSampleRateInfo::output sampleRateInfo(0u, samplingRate); in process()
489 int64_t outTimeStamp = mProcessedSamples * 1000000ll / samplingRate; in process()
/frameworks/av/services/audioflinger/
DBufLog.cpp76 int samplingRate, size_t maxBytes, const void *buf, size_t size) { in write() argument
84 samplingRate, maxBytes); in write()
115 unsigned int samplingRate, in BufLogStream() argument
117 mSamplingRate(samplingRate), mMaxBytes(maxBytes) { in BufLogStream()
DBufLog.h119 unsigned int samplingRate,
174 int samplingRate,
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp110 uint32_t samplingRate; // sampling rate at effect process interface member
856 session->samplingRate = kPreprocDefaultSr; in Session_CreateEffect()
903 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in Session_SetConfig()
909 ALOGV("Session_SetConfig sr %d cnl %08x", config->inputCfg.samplingRate, in Session_SetConfig()
912 session->samplingRate = config->inputCfg.samplingRate; in Session_SetConfig()
913 session->frameCount = session->samplingRate / 100; in Session_SetConfig()
916 session->inputConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
918 session->outputConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
922 session->revConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
931 config->inputCfg.samplingRate = config->outputCfg.samplingRate = session->samplingRate; in Session_GetConfig()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioProfileVectorHelper.h42 const uint32_t samplingRate,
47 uint32_t &samplingRate,
DPolicyAudioPort.h77 status_t checkCompatibleAudioProfile(uint32_t &samplingRate, in checkCompatibleAudioProfile() argument
82 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile()
86 void pickAudioProfile(uint32_t &samplingRate,
/frameworks/av/media/libeffects/downmix/tests/
Ddownmixtest.cpp73 pConfig->inputCfg.samplingRate = 44100; in DownmixDefaultConfig()
74 pConfig->outputCfg.samplingRate = pConfig->inputCfg.samplingRate; in DownmixDefaultConfig()
235 descriptor.config.inputCfg.samplingRate = samplingFreq; in main()
236 descriptor.config.outputCfg.samplingRate = samplingFreq; in main()
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java591 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture() argument
605 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate); in onFftDataCapture() argument
750 int what, int samplingRate, byte[] data) { in postEventFromNative() argument
770 l.onWaveFormDataCapture(visualizer, data, samplingRate); in postEventFromNative()
772 l.onFftDataCapture(visualizer, data, samplingRate); in postEventFromNative()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerInstanceSync.java150 int samplingRate) {
153 + " smp rate: " + samplingRate / 1000);
161 public void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate) {
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp97 pContext->mCompressor->Initialize(targetAmp, pContext->mConfig.inputCfg.samplingRate); in LE_reset()
121 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in LE_setConfig()
176 pContext->mConfig.inputCfg.samplingRate = 44100; in LE_init()
184 pContext->mConfig.outputCfg.samplingRate = 44100; in LE_init()
196 pContext->mCompressor->Initialize(targetAmp, pContext->mConfig.inputCfg.samplingRate); in LE_init()
/frameworks/av/media/libeffects/lvm/tests/
DEffectTestHelper.cpp34 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
/frameworks/av/media/codecs/mp3dec/test/
DMp3DecoderTest.cpp136 ASSERT_EQ(sfInfo.samplerate, mConfig->samplingRate) << "Sample rate does not match"; in TEST_P()
168 ASSERT_EQ(sfInfo.samplerate, mConfig->samplingRate) << "Sample rate does not match"; in TEST_P()
175 ASSERT_EQ(sfInfo.samplerate, mConfig->samplingRate) << "Sample rate does not match"; in TEST_P()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp90 context->config.inputCfg.samplingRate = 0; in HapticGenerator_Init()
98 context->config.outputCfg.samplingRate = 0; in HapticGenerator_Init()
217 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in HapticGenerator_Configure()
247 config->inputCfg.samplingRate, in HapticGenerator_Configure()
304 context->config.inputCfg.samplingRate)); in HapticGenerator_SetParameter()
311 context->config.inputCfg.samplingRate)); in HapticGenerator_SetParameter()
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPFrequency.h103 unsigned int samplingRate, DPBase &dpBase);
127 void configure(size_t blockSize, size_t overlapSize, size_t samplingRate);
/frameworks/av/media/libeffects/lvm/benchmarks/
Dlvm_benchmark.cpp184 config.inputCfg.samplingRate = config.outputCfg.samplingRate = kSampleRate; in BM_LVM()
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp32 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioIoDescriptor.aidl29 int samplingRate;

123