Searched refs:samplingRate (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns_param.h32 Word32 samplingRate; member in struct:__anon559
50 void GetTnsMaxBands(Word32 samplingRate, Word16 blockType, Word16* tnsMaxSfb);
/frameworks/av/libvideoeditor/lvpp/
H A DDummyAudioSource.h32 int32_t samplingRate, int32_t channelCount,
60 int32_t samplingRate, int32_t channelCount,
H A DDummyAudioSource.cpp32 int32_t samplingRate, int32_t channelCount,
36 return new DummyAudioSource(samplingRate,
44 int32_t samplingRate, int32_t channelCount,
46 : mSamplingRate(samplingRate),
59 ALOGV("samplingRate = %d", samplingRate);
31 Create( int32_t samplingRate, int32_t channelCount, int64_t frameDurationUs, int64_t audioDurationUs) argument
43 DummyAudioSource( int32_t samplingRate, int32_t channelCount, int64_t frameDurationUs, int64_t audioDurationUs) argument
/frameworks/av/include/media/
H A DAudioSystem.h90 static status_t getOutputSamplingRate(int* samplingRate, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT);
95 int* samplingRate);
108 static status_t getOutputSamplingRate(int* samplingRate, int stream = AUDIO_STREAM_DEFAULT);
155 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channels(0), frameCount(0), latency(0) {}
157 uint32_t samplingRate; member in class:android::AudioSystem::OutputDescriptor
192 uint32_t samplingRate = 0,
204 uint32_t samplingRate = 0,
H A DIAudioPolicyService.h52 uint32_t samplingRate = 0,
64 uint32_t samplingRate = 0,
H A DToneGenerator.h291 WaveGenerator(unsigned short samplingRate, unsigned short frequency,
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
H A Dpvmp3decoder_api.h196 int32 samplingRate; member in struct:tPVMP3DecoderExternal
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java457 * @param samplingRate sampling rate of the audio visualized.
459 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); argument
468 * @param samplingRate sampling rate of the audio visualized.
470 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate); argument
570 int samplingRate = msg.arg1;
574 l.onWaveFormDataCapture(mVisualizer, data, samplingRate);
577 l.onFftDataCapture(mVisualizer, data, samplingRate);
/frameworks/av/media/libmedia/
H A DIAudioFlingerClient.cpp54 data.writeInt32(desc->samplingRate);
84 desc.samplingRate = data.readInt32();
H A DAudioSystem.cpp209 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, int streamType) { argument
210 return getOutputSamplingRate(samplingRate, (audio_stream_type_t)streamType);
213 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, audio_stream_type_t streamType) argument
226 return getSamplingRate(output, streamType, samplingRate);
231 int* samplingRate)
242 *samplingRate = af->sampleRate(output);
245 *samplingRate = outputDesc->samplingRate;
249 ALOGV("getSamplingRate() streamType %d, output %d, sampling rate %d", streamType, output, *samplingRate);
452 ALOGV("ioConfigChanged() new output samplingRate
229 getSamplingRate(audio_io_handle_t output, audio_stream_type_t streamType, int* samplingRate) argument
588 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
624 getInput(audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int sessionId) argument
[all...]
H A DIAudioFlinger.cpp378 uint32_t samplingRate = pSamplingRate ? *pSamplingRate : 0; local
386 data.writeInt32(samplingRate);
396 samplingRate = reply.readInt32();
397 if (pSamplingRate) *pSamplingRate = samplingRate;
453 uint32_t samplingRate = pSamplingRate ? *pSamplingRate : 0; local
460 data.writeInt32(samplingRate);
467 samplingRate = reply.readInt32();
468 if (pSamplingRate) *pSamplingRate = samplingRate;
884 uint32_t samplingRate = data.readInt32(); local
891 &samplingRate,
931 uint32_t samplingRate = data.readInt32(); local
[all...]
H A DIAudioPolicyService.cpp125 uint32_t samplingRate,
133 data.writeInt32(samplingRate);
177 uint32_t samplingRate,
185 data.writeInt32(samplingRate);
426 uint32_t samplingRate = data.readInt32(); local
433 samplingRate,
473 uint32_t samplingRate = data.readInt32(); local
478 samplingRate,
123 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
175 getInput( audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int audioSession) argument
/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp108 uint32_t samplingRate; // sampling rate at effect process interface member in struct:preproc_session_s
799 session->samplingRate = kPreprocDefaultSr;
885 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate ||
892 config->inputCfg.samplingRate, config->inputCfg.channels);
897 if (session->samplingRate != config->inputCfg.samplingRate ||
907 if (config->inputCfg.samplingRate >= 32000 && !(session->createdMsk & (1 << PREPROC_AEC))) {
910 if (config->inputCfg.samplingRate >= 16000) {
912 } else if (config->inputCfg.samplingRate >
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java541 * @param samplingRate the sampling rate for audio in samples per second.
543 public void setAudioSamplingRate(int samplingRate) { argument
544 if (samplingRate <= 0) {
547 setParameter("audio-param-sampling-rate=" + samplingRate);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp101 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL;
154 pContext->mConfig.inputCfg.samplingRate = 44100;
162 pContext->mConfig.outputCfg.samplingRate = 44100;
507 uint32_t deltaSmpl = pContext->mConfig.inputCfg.samplingRate * latencyMs / 1000;
/frameworks/av/media/libstagefright/codecs/mp3dec/
H A DSoftMP3.cpp257 } else if (mConfig->samplingRate != mSamplingRate
259 mSamplingRate = mConfig->samplingRate;
284 + (mNumFramesOutput * 1000000ll) / mConfig->samplingRate;
/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/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/libeffects/testlibs/
H A DEffectEqualizer.cpp247 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate);
268 pConfig->inputCfg.samplingRate);
325 pContext->config.inputCfg.samplingRate = 44100;
333 pContext->config.outputCfg.samplingRate = 44100;
H A DEffectReverb.h450 static int ReverbComputeConstants(reverb_object_t *pReverbData, uint32_t samplingRate);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaVisualizerTest.java138 int samplingRate = mVisualizer.getSamplingRate();
140 samplingRate >= MIN_SAMPLING_RATE && samplingRate <= MAX_SAMPLING_RATE);
584 Visualizer visualizer, byte[] waveform, int samplingRate) {
596 Visualizer visualizer, byte[] fft, int samplingRate) {
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp634 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate);
643 if(pConfig->inputCfg.samplingRate != 44100){
651 switch (pConfig->inputCfg.samplingRate) {
671 ALOGV("\rReverb_setConfig invalid sampling rate %d", pConfig->inputCfg.samplingRate);
752 pContext->config.inputCfg.samplingRate = 44100;
760 pContext->config.outputCfg.samplingRate = 44100;
861 pContext->SamplesToExitCount = (params.T60 * pContext->config.inputCfg.samplingRate)/1000;
1252 pContext->SamplesToExitCount = (ActiveParams.T60 * pContext->config.inputCfg.samplingRate)/1000;
2068 (ActiveParams.T60 * pContext->config.inputCfg.samplingRate)/100
[all...]
/frameworks/av/services/audioflinger/
H A DAudioPolicyService.h65 uint32_t samplingRate = 0,
78 uint32_t samplingRate = 0,
/frameworks/av/media/libeffects/downmix/
H A DEffectDownmix.c569 * pDwmModule->config.inputCfg.samplingRate
570 * pDwmModule->config.outputCfg.samplingRate
593 pDwmModule->config.inputCfg.samplingRate = 44100;
594 pDwmModule->config.outputCfg.samplingRate = pDwmModule->config.inputCfg.samplingRate;
643 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp646 int samplingRate, numChannels, bitrate, numSamples; local
648 header, &frameSize, &samplingRate, &numChannels,
691 mFormat->setInt32(kKeySampleRate, samplingRate);

Completed in 842 milliseconds

12