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()
159 pcmParams->nSamplingRate = mSamplingRate; in internalGetParameter()
179 mp3Params->nSampleRate = mSamplingRate; in internalGetParameter()
225 mSamplingRate = pcmParams->nSamplingRate; in internalSetParameter()
337 } else if (mConfig->samplingRate != mSamplingRate in onQueueFilled()
339 mSamplingRate = mConfig->samplingRate; in onQueueFilled()
363 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.h276 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.cpp851 if (AudioSystem::getOutputSamplingRate(&mSamplingRate, streamType) != NO_ERROR) { in ToneGenerator()
861 mProcessSize = (mSamplingRate * 20) / 1000; in ToneGenerator()
1047 if ((sec + 1) > ((long)(INT_MAX / mSamplingRate))) { in stopTone()
1048 mMaxSmp = sec * mSamplingRate; in stopTone()
1052 mMaxSmp = (unsigned int)(((int64_t)sec * mSamplingRate) / 1000); in stopTone()
1274 (lpToneGen->mNextSegSmp*1000)/lpToneGen->mSamplingRate); in audioCallback()
1282 (lpToneGen->mNextSegSmp*1000)/lpToneGen->mSamplingRate); in audioCallback()
1295 … += (lpToneDesc->segments[lpToneGen->mCurSegment].duration * lpToneGen->mSamplingRate) / 1000; in audioCallback()
1406 if (mDurationMs > (int)(TONEGEN_INF / mSamplingRate)) { in prepareWave()
1407 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.cpp225 if (mSamplingRate != 0) { in toAudioPortConfig()
268 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.cpp826 outputDesc->mSamplingRate = config.sample_rate; in getOutputForDevice()
896 if ((samplingRate == outputDesc->mSamplingRate) && in getOutputForDevice()
952 outputDesc->mSamplingRate, format, outputDesc->mFormat, channelMask, in getOutputForDevice()
963 outputDesc->mSamplingRate = config.sample_rate; in getOutputForDevice()
1605 inputDesc->mSamplingRate = profileSamplingRate; in getInputForDevice()
3272 config.sample_rate = outputDesc->mSamplingRate; in AudioPolicyManager()
3289 outputDesc->mSamplingRate = config.sample_rate; in AudioPolicyManager()
3344 config.sample_rate = inputDesc->mSamplingRate; in AudioPolicyManager()
3562 config.sample_rate = outputDesc->mSamplingRate; in AudioPolicyManager()
3576 outputDesc->mSamplingRate, outputDesc->mFormat, outputDesc->mChannelMask); in AudioPolicyManager()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp68 jfieldID mSamplingRate; member
665 gAudioPortConfigFields.mSamplingRate); in convertAudioPortConfigToNative()
1839 gAudioPortConfigFields.mSamplingRate = GetFieldIDOrDie(env, audioPortConfigClass, in register_android_media_AudioSystem()
/frameworks/av/services/audioflinger/
DThreads.cpp2276 desc->mSamplingRate = mSampleRate; in ioConfigChanged()
7392 desc->mSamplingRate = mSampleRate; in ioConfigChanged()