Searched defs:samplingRate (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/media/java/android/media/
H A DAudioDevicePortConfig.java29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, argument
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain);
35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
H A DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain);
H A DAudioMixPort.java45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain);
H A DAudioPortConfig.java48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, argument
51 mSamplingRate = samplingRate;
68 public int samplingRate() { method in class:AudioPortConfig
H A DAudioDevicePort.java76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, argument
78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain);
H A DAudioPort.java182 public AudioPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
184 return new AudioPortConfig(this, samplingRate, channelMask, format, gain);
H A DMediaRecorder.java692 * @param samplingRate the sampling rate for audio in samples per second.
694 public void setAudioSamplingRate(int samplingRate) { argument
695 if (samplingRate <= 0) {
698 setParameter("audio-param-sampling-rate=" + samplingRate);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns_param.h32 Word32 samplingRate; member in struct:__anon377
50 void GetTnsMaxBands(Word32 samplingRate, Word16 blockType, Word16* tnsMaxSfb);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DIOProfile.cpp32 uint32_t samplingRate,
59 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) ||
66 uint32_t myUpdatedSamplingRate = samplingRate;
74 if (checkExactAudioProfile(samplingRate, channelMask, format) != NO_ERROR) {
30 isCompatibleProfile(audio_devices_t device, String8 address, uint32_t samplingRate, uint32_t *updatedSamplingRate, audio_format_t format, audio_format_t *updatedFormat, audio_channel_mask_t channelMask, audio_channel_mask_t *updatedChannelMask, uint32_t flags) const argument
H A DAudioProfile.cpp31 status_t AudioProfile::checkExact(uint32_t samplingRate, audio_channel_mask_t channelMask, argument
36 supportsRate(samplingRate)) {
63 status_t AudioProfile::checkCompatibleSamplingRate(uint32_t samplingRate, argument
66 ALOG_ASSERT(samplingRate > 0);
69 updatedSamplingRate = samplingRate;
76 size_t orderOfDesiredRate = mSamplingRates.orderOf(samplingRate);
81 if (candidate / AUDIO_RESAMPLER_DOWN_RATIO_MAX <= samplingRate) {
89 if (candidate * AUDIO_RESAMPLER_UP_RATIO_MAX >= samplingRate) {
228 status_t AudioProfileVector::checkExactProfile(uint32_t samplingRate, argument
238 if (profile->checkExact(samplingRate, channelMas
245 checkCompatibleProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask, audio_format_t &format, audio_port_type_t portType, audio_port_role_t portRole) const argument
[all...]
H A DAudioPort.cpp160 uint32_t samplingRate = UINT_MAX; local
162 if ((samplingRates[i] < samplingRate) && (samplingRates[i] > 0)) {
163 samplingRate = samplingRates[i];
166 pickedRate = (samplingRate == UINT_MAX) ? 0 : samplingRate;
298 void AudioPort::pickAudioProfile(uint32_t &samplingRate, argument
303 samplingRate = 0;
333 samplingRate = pickedSamplingRate;
339 samplingRate, channelMask, format);
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
H A Dpvmp3decoder_api.h196 int32 samplingRate; member in struct:tPVMP3DecoderExternal
/frameworks/wilhelm/src/itf/
H A DIAudioIODeviceCapabilities.c261 SLAudioIODeviceCapabilitiesItf self, SLuint32 deviceID, SLmilliHertz samplingRate,
274 switch (samplingRate) {
260 IAudioIODeviceCapabilities_QuerySampleFormatsSupported( SLAudioIODeviceCapabilitiesItf self, SLuint32 deviceID, SLmilliHertz samplingRate, SLint32 *pSampleFormats, SLint32 *pNumOfSampleFormats) argument
/frameworks/av/media/libmedia/
H A DToneGenerator.cpp1515 // samplingRate: Output sampling rate in Hz
1523 ToneGenerator::WaveGenerator::WaveGenerator(unsigned short samplingRate, argument
1526 double F_div_Fs; // frequency / samplingRate
1528 F_div_Fs = frequency / (double)samplingRate;
H A DAudioSystem.cpp253 status_t AudioSystem::getOutputSamplingRate(uint32_t* samplingRate, audio_stream_type_t streamType) argument
266 return getSamplingRate(output, samplingRate);
270 uint32_t* samplingRate)
276 *samplingRate = af->sampleRate(ioHandle);
278 *samplingRate = desc->mSamplingRate;
280 if (*samplingRate == 0) {
285 ALOGV("getSamplingRate() ioHandle %d, sampling rate %u", ioHandle, *samplingRate);
516 ALOGV("ioConfigChanged() new %s opened %d samplingRate %u, format %#x channel mask %#x "
553 ALOGV("ioConfigChanged() new config for %s %d samplingRate %u, format %#x "
779 uint32_t samplingRate,
269 getSamplingRate(audio_io_handle_t ioHandle, uint32_t* samplingRate) argument
778 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
790 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
836 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, pid_t pid, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
[all...]
H A DIAudioPolicyService.cpp149 uint32_t samplingRate,
158 data.writeInt32(samplingRate);
178 uint32_t samplingRate,
215 data.writeInt32(samplingRate);
285 uint32_t samplingRate,
305 data.writeInt32(samplingRate);
870 uint32_t samplingRate = data.readInt32(); local
881 samplingRate,
904 uint32_t samplingRate = data.readInt32(); local
918 samplingRate, forma
147 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
173 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
280 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, pid_t pid, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
966 uint32_t samplingRate = data.readInt32(); local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioPort.h86 status_t checkExactAudioProfile(uint32_t samplingRate, argument
90 return mProfiles.checkExactProfile(samplingRate, channelMask, format);
95 status_t checkCompatibleAudioProfile(uint32_t &samplingRate, argument
99 return mProfiles.checkCompatibleProfile(samplingRate, channelMask, format, mType, mRole);
106 void pickAudioProfile(uint32_t &samplingRate,
H A DAudioProfile.h41 uint32_t samplingRate) :
46 mSamplingRates.add(samplingRate);
104 status_t checkCompatibleSamplingRate(uint32_t samplingRate,
197 status_t checkExactProfile(uint32_t samplingRate, audio_channel_mask_t channelMask,
200 status_t checkCompatibleProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask,
39 AudioProfile(audio_format_t format, audio_channel_mask_t channelMasks, uint32_t samplingRate) argument
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DVisualizerTest.java148 public void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate) { argument
151 Log.d(TAG, "onWaveFormDataCapture(): "+waveform[0]+" smp rate: "+samplingRate/1000);
158 public void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate) { argument
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp131 uint32_t samplingRate,
145 return mAudioPolicyManager->getOutput(stream, samplingRate,
154 uint32_t samplingRate,
173 return mAudioPolicyManager->getOutputForAttr(attr, output, session, stream, uid, samplingRate,
265 uint32_t samplingRate,
308 samplingRate, format, channelMask,
130 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
149 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
260 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, pid_t pid, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
H A DAudioPolicyInterfaceImplLegacy.cpp132 uint32_t samplingRate,
146 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate,
239 uint32_t samplingRate,
269 *input = mpAudioPolicy->get_input(mpAudioPolicy, inputSource, samplingRate,
571 uint32_t samplingRate,
585 *output = getOutput(*stream, samplingRate, format, channelMask,
131 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
234 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, pid_t pid __unused, uid_t uid __unused, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags __unused, audio_port_handle_t selectedDeviceId __unused) argument
566 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session __unused, audio_stream_type_t *stream, uid_t uid __unused, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId __unused, const audio_offload_info_t *offloadInfo) argument
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java553 * @param samplingRate sampling rate of the audio visualized.
555 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); argument
564 * @param samplingRate sampling rate of the audio visualized.
566 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate); argument
666 int samplingRate = msg.arg1;
670 l.onWaveFormDataCapture(mVisualizer, data, samplingRate);
673 l.onFftDataCapture(mVisualizer, data, samplingRate);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp154 unsigned samplingRate = samplingRateTable[fscod]; local
166 (*metaData)->setInt32(kKeySampleRate, samplingRate);
945 int samplingRate, numChannels, bitrate, numSamples; local
947 header, &frameSize, &samplingRate, &numChannels,
997 mFormat->setInt32(kKeySampleRate, samplingRate);
/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp109 uint32_t samplingRate; // sampling rate at effect process interface member in struct:preproc_session_s
854 session->samplingRate = kPreprocDefaultSr;
940 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate ||
947 config->inputCfg.samplingRate, config->inputCfg.channels);
951 if (config->inputCfg.samplingRate >= 32000 && !(session->createdMsk & (1 << PREPROC_AEC))) {
954 if (config->inputCfg.samplingRate >= 16000) {
956 } else if (config->inputCfg.samplingRate >= 8000) {
970 session->samplingRate = config->inputCfg.samplingRate;
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java926 sinkSamplingRate = sinkConfig.samplingRate();
937 || sinkConfig.samplingRate() != sinkSamplingRate
962 if (intArrayContains(mAudioSource.samplingRates(), sinkConfig.samplingRate())) {
963 sourceSamplingRate = sinkConfig.samplingRate();
1097 public void overrideAudioSink(int audioType, String audioAddress, int samplingRate, argument
1103 mDesiredSamplingRate = samplingRate;

Completed in 500 milliseconds

12