Home
last modified time | relevance | path

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

1234

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp181 uint32_t samplingRate, in checkExact() argument
187 audioProfile->supportsRate(samplingRate)) { in checkExact()
194 uint32_t samplingRate, in checkIdentical() argument
199 audioProfile->supportsRate(samplingRate)) { in checkIdentical()
206 uint32_t samplingRate, in checkCompatibleSamplingRate() argument
209 ALOG_ASSERT(samplingRate > 0); in checkCompatibleSamplingRate()
213 updatedSamplingRate = samplingRate; in checkCompatibleSamplingRate()
220 auto desiredRate = sampleRates.lower_bound(samplingRate); in checkCompatibleSamplingRate()
224 if (*desiredRate / AUDIO_RESAMPLER_DOWN_RATIO_MAX <= samplingRate) { in checkCompatibleSamplingRate()
232 if (candidate * AUDIO_RESAMPLER_UP_RATIO_MAX >= samplingRate) { in checkCompatibleSamplingRate()
[all …]
DPolicyAudioPort.cpp81 uint32_t samplingRate = UINT_MAX; in pickSamplingRate() local
83 if ((rate < samplingRate) && (rate > 0)) { in pickSamplingRate()
84 samplingRate = rate; in pickSamplingRate()
87 pickedRate = (samplingRate == UINT_MAX) ? 0 : samplingRate; in pickSamplingRate()
214 void PolicyAudioPort::pickAudioProfile(uint32_t &samplingRate, in pickAudioProfile() argument
219 samplingRate = 0; in pickAudioProfile()
250 samplingRate = pickedSamplingRate; in pickAudioProfile()
256 asAudioPort()->getName().c_str(), samplingRate, channelMask, format); in pickAudioProfile()
DIOProfile.cpp38 uint32_t samplingRate, in getCompatibilityScore() argument
58 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) || in getCompatibilityScore()
65 uint32_t myUpdatedSamplingRate = samplingRate; in getCompatibilityScore()
68 .sample_rate = samplingRate, in getCompatibilityScore()
/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()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioProfileVectorHelper.h54 const uint32_t samplingRate,
71 const uint32_t samplingRate,
76 uint32_t &samplingRate,
DPolicyAudioPort.h69 status_t checkCompatibleAudioProfile(uint32_t &samplingRate, in checkCompatibleAudioProfile() argument
74 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile()
78 void pickAudioProfile(uint32_t &samplingRate,
110 const uint32_t samplingRate,
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp405 int32_t samplingRate = mConfig->samplingRate; in process() local
437 } else if (mConfig->samplingRate != samplingRate in process()
440 samplingRate, mConfig->samplingRate, in process()
442 samplingRate = mConfig->samplingRate; in process()
445 C2StreamSampleRateInfo::output sampleRateInfo(0u, samplingRate); in process()
497 if (samplingRate && numChannels) { in process()
498 int64_t outTimeStamp = mProcessedSamples * 1000000ll / samplingRate; in process()
/frameworks/av/services/audioflinger/afutils/
DBufLog.cpp66 int samplingRate, size_t maxBytes, const void *buf, size_t size) { in write() argument
74 samplingRate, maxBytes); in write()
101 unsigned int samplingRate, in BufLogStream() argument
103 mSamplingRate(samplingRate), mMaxBytes(maxBytes) { in BufLogStream()
DBufLog.h119 unsigned int samplingRate,
172 int samplingRate,
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp111 uint32_t samplingRate; // sampling rate at effect process interface member
851 session->samplingRate = kPreprocDefaultSr; in Session_CreateEffect()
898 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in Session_SetConfig()
904 ALOGV("Session_SetConfig sr %d cnl %08x", config->inputCfg.samplingRate, in Session_SetConfig()
907 session->samplingRate = config->inputCfg.samplingRate; in Session_SetConfig()
908 session->frameCount = session->samplingRate / 100; in Session_SetConfig()
911 session->inputConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
913 session->outputConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
917 session->revConfig.set_sample_rate_hz(session->samplingRate); in Session_SetConfig()
926 config->inputCfg.samplingRate = config->outputCfg.samplingRate = session->samplingRate; in Session_GetConfig()
[all …]
/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.java615 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture() argument
629 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate); in onFftDataCapture() argument
774 int what, int samplingRate, byte[] data) { in postEventFromNative() argument
794 l.onWaveFormDataCapture(visualizer, data, samplingRate); in postEventFromNative()
796 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/tests/common/
DEffectTestHelper.cpp33 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
/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/libaudioclient/include/media/
DAudioIoDescriptor.h54 uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask,
58 mSamplingRate(samplingRate), mFormat(format), mChannelMask(channelMask), in mIoHandle()
/frameworks/av/media/module/codecs/mp3dec/test/
DMp3DecoderTest.cpp133 ASSERT_EQ(sfInfo.samplerate, mConfig->samplingRate) << "Sample rate does not match"; in TEST_P()
161 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()
/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/hapticgenerator/
DEffectHapticGenerator.cpp132 context->config.inputCfg.samplingRate = 0; in HapticGenerator_Init()
140 context->config.outputCfg.samplingRate = 0; in HapticGenerator_Init()
261 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in HapticGenerator_Configure()
291 config->inputCfg.samplingRate, in HapticGenerator_Configure()
360 context->config.inputCfg.samplingRate)); in HapticGenerator_SetParameter()
367 context->config.inputCfg.samplingRate)); in HapticGenerator_SetParameter()
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp32 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
/frameworks/av/media/module/codecserviceregistrant/fuzzer/
DREADME.md14 4. SamplingRate (parameter name: `samplingRate`)
23 | `samplingRate` |`UINT32_MIN` to `UINT32_MAX` | Value obtained from FuzzedDataProvider|

1234