Home
last modified time | relevance | path

Searched refs:mSamplingRate (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioPortConfig.java34 private final int mSamplingRate; field in AudioPortConfig
51 mSamplingRate = samplingRate; in AudioPortConfig()
69 return mSamplingRate; in samplingRate()
97 + ", mSamplingRate:" + mSamplingRate in toString()
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp50 mSamplingRate(44100), in SoftMP3()
148 pcmParams->nSamplingRate = mSamplingRate; in internalGetParameter()
168 mp3Params->nSampleRate = mSamplingRate; in internalGetParameter()
214 mSamplingRate = pcmParams->nSamplingRate; in internalSetParameter()
323 } else if (mConfig->samplingRate != mSamplingRate in onQueueFilled()
325 mSamplingRate = mConfig->samplingRate; in onQueueFilled()
349 mAnchorTimeUs + (mNumFramesOutput * 1000000ll) / mSamplingRate; in onQueueFilled()
DSoftMP3.h60 int32_t mSamplingRate; member
/frameworks/av/include/media/
DAudioIoDescriptor.h37 mSamplingRate(0), mFormat(AUDIO_FORMAT_DEFAULT), mChannelMask(AUDIO_CHANNEL_NONE), in AudioIoDescriptor()
61 uint32_t mSamplingRate; variable
DToneGenerator.h270 uint32_t mSamplingRate; // AudioFlinger Sampling rate variable
/frameworks/av/media/libmedia/
DIAudioFlingerClient.cpp49 data.writeInt32(ioDesc->mSamplingRate); in ioConfigChanged()
73 ioDesc->mSamplingRate = data.readInt32(); in onTransact()
DToneGenerator.cpp821 if (AudioSystem::getOutputSamplingRate(&mSamplingRate, streamType) != NO_ERROR) { in ToneGenerator()
831 mProcessSize = (mSamplingRate * 20) / 1000; in ToneGenerator()
1013 if ((sec + 1) > ((long)(INT_MAX / mSamplingRate))) { in stopTone()
1014 mMaxSmp = sec * mSamplingRate; in stopTone()
1018 mMaxSmp = (unsigned int)(((int64_t)sec * mSamplingRate) / 1000); in stopTone()
1250 (lpToneGen->mNextSegSmp*1000)/lpToneGen->mSamplingRate); in audioCallback()
1258 (lpToneGen->mNextSegSmp*1000)/lpToneGen->mSamplingRate); in audioCallback()
1271 … += (lpToneDesc->segments[lpToneGen->mCurSegment].duration * lpToneGen->mSamplingRate) / 1000; in audioCallback()
1382 if (mDurationMs > (int)(TONEGEN_INF / mSamplingRate)) { in prepareWave()
1383 mMaxSmp = (mDurationMs / 1000) * mSamplingRate; in prepareWave()
[all …]
DAudioSystem.cpp278 *samplingRate = desc->mSamplingRate; in getSamplingRate()
518 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, ioDesc->mChannelMask, in ioConfigChanged()
556 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, in ioConfigChanged()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp35 profile->pickAudioProfile(mSamplingRate, mChannelMask, mFormat); in AudioInputDescriptor()
173 const audio_config_base_t config = { .sample_rate = mSamplingRate, .channel_mask = mChannelMask, in getConfig()
186 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump()
DAudioPort.cpp384 mSamplingRate = 0; in AudioPortConfig()
411 mSamplingRate = config->sample_rate; in applyAudioPortConfig()
441 dstConfig->sample_rate = mSamplingRate; in toAudioPortConfig()
DDeviceDescriptor.cpp226 if (mSamplingRate != 0) { in toAudioPortConfig()
269 port->pickAudioProfile(mSamplingRate, mChannelMask, mFormat); in importAudioPort()
DAudioOutputDescriptor.cpp50 port->pickAudioProfile(mSamplingRate, mChannelMask, mFormat); in AudioOutputDescriptor()
194 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump()
217 indent, mId, mId, mSamplingRate, mFormat, mChannelMask); in log()
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp46 mSamplingRate(8000) { in SoftG711()
137 pcmParams->nSamplingRate = mSamplingRate; in internalGetParameter()
171 mSamplingRate = pcmParams->nSamplingRate; in internalSetParameter()
DSoftG711.h51 int32_t mSamplingRate; member
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPort.h169 uint32_t mSamplingRate; variable
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp810 outputDesc->mSamplingRate = config.sample_rate; in getOutputForDevice()
880 if ((samplingRate == outputDesc->mSamplingRate) && in getOutputForDevice()
936 outputDesc->mSamplingRate, format, outputDesc->mFormat, channelMask, in getOutputForDevice()
947 outputDesc->mSamplingRate = config.sample_rate; in getOutputForDevice()
1576 inputDesc->mSamplingRate = profileSamplingRate; in getInputForDevice()
3239 config.sample_rate = outputDesc->mSamplingRate; in AudioPolicyManager()
3256 outputDesc->mSamplingRate = config.sample_rate; in AudioPolicyManager()
3311 config.sample_rate = inputDesc->mSamplingRate; in AudioPolicyManager()
3529 config.sample_rate = outputDesc->mSamplingRate; in AudioPolicyManager()
3543 outputDesc->mSamplingRate, outputDesc->mFormat, outputDesc->mChannelMask); in AudioPolicyManager()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp67 jfieldID mSamplingRate; member
664 gAudioPortConfigFields.mSamplingRate); in convertAudioPortConfigToNative()
1800 gAudioPortConfigFields.mSamplingRate = GetFieldIDOrDie(env, audioPortConfigClass, in register_android_media_AudioSystem()
/frameworks/av/services/audioflinger/
DThreads.cpp2137 desc->mSamplingRate = mSampleRate; in ioConfigChanged()
7136 desc->mSamplingRate = mSampleRate; in ioConfigChanged()