Home
last modified time | relevance | path

Searched refs:sample_rate (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/av/services/audioflinger/
DSpdifStreamOut.cpp55 mApplicationSampleRate = config->sample_rate; in open()
74 customConfig.sample_rate = config->sample_rate * mRateMultiplier; in open()
84 config->sample_rate, in open()
89 customConfig.sample_rate, in open()
DAudioHwDevice.cpp50 config->sample_rate, in openOutputStream()
65 config->sample_rate, in openOutputStream()
DPatchPanel.cpp240 config.sample_rate = patch->sinks[0].sample_rate; in createAudioPatch()
271 config.sample_rate = patch->sources[0].sample_rate; in createAudioPatch()
273 config.sample_rate = newPatch.mPlayback.thread()->sampleRate(); in createAudioPatch()
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp146 int sample_rate, num_channels, bitrate; in Resync() local
149 &sample_rate, &num_channels, &bitrate)) { in Resync()
305 int sample_rate; in MP3Extractor() local
309 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
320 int sample_rate; in MP3Extractor() local
324 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
344 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, sample_rate); in MP3Extractor()
535 int sample_rate; in read() local
550 header, &frame_size, &sample_rate, NULL, in read()
600 mCurrentTimeUs = mBasisTimeUs + ((mSamplesRead * 1000000) / sample_rate); in read()
/frameworks/av/media/libeffects/loudness/common/core/
Dbasic_types.h104 int sample_rate(void) const;
105 void set_sample_rate(int sample_rate);
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp294 uint32_t sample_rate, num_channels, bitrate; in resync() local
297 &sample_rate, &num_channels, &bitrate)) { in resync()
381 uint32_t sample_rate; in getFrame() local
392 header, &frame_size, &sample_rate, NULL /*out_channels*/, in getFrame()
/frameworks/av/services/mediaanalytics/
Dstatsd_audiothread.cpp116 int32_t sample_rate = -1; in statsd_audiothread() local
117 if (item->getInt32(MM_PREFIX "sampleRate", &sample_rate)) { in statsd_audiothread()
118 metrics_proto.set_sample_rate(sample_rate); in statsd_audiothread()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothCodecConfigTest.java163 int sample_rate = selectSampleRate(config_id); in testBluetoothCodecConfig_valid_get_methods() local
172 sample_rate, bits_per_sample, in testBluetoothCodecConfig_valid_get_methods()
176 if (sample_rate == BluetoothCodecConfig.SAMPLE_RATE_NONE) { in testBluetoothCodecConfig_valid_get_methods()
217 assertEquals(sample_rate, bcc.getSampleRate()); in testBluetoothCodecConfig_valid_get_methods()
/frameworks/av/media/libstagefright/codecs/flac/dec/
DSoftFlacDecoder.cpp174 flacParams->nSampleRate = mStreamInfo.sample_rate; in internalGetParameter()
212 pcmParams->nSamplingRate = mStreamInfo.sample_rate; in internalGetParameter()
381 if (mStreamInfo.sample_rate && mStreamInfo.channels) { in onQueueFilled()
383 mStreamInfo.sample_rate, mStreamInfo.channels); in onQueueFilled()
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp93 mFormat.sample_rate = (uint32_t)parcel->readInt32(); in readFromParcel()
117 parcel->writeInt32(mFormat.sample_rate); in writeToParcel()
DIAudioPolicyServiceClient.cpp40 config->sample_rate = data.readUint32(); in readAudioConfigBaseFromParcel()
47 data.writeUint32(config->sample_rate); in writeAudioConfigBaseToParcel()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DJMediaPlayer2Utils.cpp61 jMP2UtilsCls, jSetAudioOutputDeviceById, audioFormat, info.sample_rate, channelMask); in isOffloadedAudioPlaybackSupported()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalLocal.cpp116 config->sample_rate, config->format, config->channel_mask, in openOutputStream()
141 config->sample_rate, config->format, config->channel_mask, in openInputStream()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp243 if (mStreamInfo.sample_rate && mStreamInfo.max_blocksize && in process()
247 0u, mStreamInfo.sample_rate); in process()
267 " %d block size", mStreamInfo.sample_rate, mStreamInfo.channels, in process()
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.h57 return mStreamInfo.sample_rate; in getSampleRate()
DFLACDecoder.cpp373 if (mWriteHeader.sample_rate != getSampleRate() || in decodeOneFrame()
378 mWriteHeader.sample_rate, mWriteHeader.channels, mWriteHeader.bits_per_sample); in decodeOneFrame()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1018 __func__, outputDevices.toString().c_str(), config->sample_rate, config->format, in getOutputForAttrInt()
1087 audio_config_base_t clientConfig = {.sample_rate = config->sample_rate, in getOutputForAttr()
1158 audio_is_linear_pcm(config->format) && config->sample_rate <= SAMPLE_RATE_HZ_MAX && in getOutputForDevices()
1173 config->sample_rate, in getOutputForDevices()
1187 if ((config->sample_rate == desc->mSamplingRate) && in getOutputForDevices()
1229 (config->sample_rate != 0 && config->sample_rate != outputDesc->mSamplingRate) || in getOutputForDevices()
1233 "format %d %d, channel mask %04x %04x", __func__, output, config->sample_rate, in getOutputForDevices()
1241 config->sample_rate <= SAMPLE_RATE_HZ_MAX) { in getOutputForDevices()
1276 output = selectOutput(outputs, *flags, config->format, channelMask, config->sample_rate); in getOutputForDevices()
1280 stream, config->sample_rate, config->format, channelMask, *flags); in getOutputForDevices()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp51 const audio_config_base_t config = { .sample_rate = mSamplingRate, .channel_mask = mChannelMask, in getConfig()
461 lConfig.sample_rate = mSamplingRate; in open()
474 lConfig.offload_info.sample_rate = lConfig.sample_rate; in open()
503 mSamplingRate = lConfig.sample_rate; in open()
DHwModule.cpp51 config->sample_rate)); in addOutputProfile()
119 config->sample_rate)); in addInputProfile()
129 name.string(), config->sample_rate, config->channel_mask); in addInputProfile()
DAudioPort.cpp159 status = mProfiles.checkExactProfile(config->sample_rate, in checkExactAudioProfile()
400 mSamplingRate = config->sample_rate; in applyAudioPortConfig()
449 updateField(mSamplingRate, &audio_port_config::sample_rate, in toAudioPortConfig()
DIOProfile.cpp62 .sample_rate = samplingRate, in isCompatibleProfile()
DClientDescriptor.cpp48 mConfig.format, mConfig.sample_rate, mConfig.channel_mask); in dump()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp78 uint32_t sample_rate; member
166 chunkFormat->sample_rate * 1000, // convert to milliHz in createBufferQueueAudioPlayer()
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp121 config.sample_rate = aaudioSampleRate; in open()
233 setSampleRate(config.sample_rate); in open()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp99 offloadInfo.sample_rate = sampleRate; in testTrack()

12