Searched defs:sampleRate (Results 51 - 75 of 78) sorted by relevance

1234

/frameworks/av/services/audioflinger/
H A DAudioMixer.h39 AudioMixer(size_t frameCount, uint32_t sampleRate,
185 uint32_t sampleRate; member in struct:android::AudioMixer::track_t
199 bool setResampler(uint32_t sampleRate, uint32_t devSampleRate);
H A DAudioMixer.cpp99 AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate, uint32_t maxNumTracks) argument
101 mSampleRate(sampleRate)
202 t->sampleRate = mSampleRate;
285 pDbp->mDownmixConfig.inputCfg.samplingRate = pTrack->sampleRate;
286 pDbp->mDownmixConfig.outputCfg.samplingRate = pTrack->sampleRate;
475 track.sampleRate = mSampleRate;
539 if (sampleRate != value) {
540 sampleRate = value;
765 t->resampler->setSampleRate(t->sampleRate);
1426 return basePTS + ((outputFrameIndex * t.localTimeFreq) / t.sampleRate);
[all...]
H A DAudioFlinger.h92 uint32_t sampleRate,
106 uint32_t sampleRate,
115 virtual uint32_t sampleRate(audio_io_handle_t output) const;
145 virtual size_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
388 uint32_t sampleRate,
424 int sampleRate() const; // FIXME inline after cblk sr moved
556 uint32_t sampleRate() const { return mSampleRate; } function in class:android::AudioFlinger::ThreadBase
780 uint32_t sampleRate,
904 uint32_t sampleRate,
947 uint32_t sampleRate,
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp988 long sampleRate = strtol(filename + 5, &end, 10); local
991 sampleRate = 44100;
993 mediaSource = new SineSource(sampleRate, 1);
/frameworks/av/include/media/
H A DMediaProfiles.h242 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
245 mSampleRate(sampleRate),
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp393 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
407 ALOGV("open(%u, %d, %d, %d)", sampleRate, channelCount, format, bufferCount);
422 frameCount = (sampleRate*afFrameCount*bufferCount)/afSampleRate;
441 sampleRate,
451 sampleRate,
466 mMsecsPerFrame = 1.e3 / (float) sampleRate;
392 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags) argument
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorAudioDecoder.cpp740 int32_t sampleRate, channelCount; local
742 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
744 ALOGV("VideoEditorAudioDecoder_step: samplingFreq = %d", sampleRate);
747 (uint32_t)sampleRate;
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp242 *samplingRate = af->sampleRate(output);
337 status_t AudioSystem::getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
343 if ((inBuffSize == 0) || (sampleRate != gPrevInSamplingRate) || (format != gPrevInFormat)
350 inBuffSize = af->getInputBufferSize(sampleRate, format, channelMask);
353 gPrevInSamplingRate = sampleRate;
H A DAudioTrack.cpp55 uint32_t sampleRate)
85 *frameCount = (sampleRate == 0) ? afFrameCount * minBufCount :
86 afFrameCount * minBufCount * sampleRate / afSampleRate;
104 uint32_t sampleRate,
118 mStatus = set(streamType, sampleRate, format, channelMask,
126 uint32_t sampleRate,
139 mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format,
147 uint32_t sampleRate,
161 mStatus = set(streamType, sampleRate, format, channelMask,
188 uint32_t sampleRate,
52 getMinFrameCount( int* frameCount, audio_stream_type_t streamType, uint32_t sampleRate) argument
102 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
124 AudioTrack( int streamType, uint32_t sampleRate, int format, int channelMask, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
145 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
186 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId) argument
749 createTrack_l( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output) argument
[all...]
H A DIAudioFlinger.cpp89 uint32_t sampleRate,
105 data.writeInt32(sampleRate);
138 uint32_t sampleRate,
152 data.writeInt32(sampleRate);
180 virtual uint32_t sampleRate(audio_io_handle_t output) const function in class:android::BpAudioFlinger
356 virtual size_t getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
361 data.writeInt32(sampleRate);
723 uint32_t sampleRate = data.readInt32(); local
734 (audio_stream_type_t) streamType, sampleRate, format,
745 uint32_t sampleRate local
86 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
135 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
874 uint32_t sampleRate = data.readInt32(); local
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h94 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
195 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
209 uint32_t sampleRate() const { return mSampleRate; } function in class:android::MediaPlayerService::AudioCache
H A DMediaPlayerService.cpp1212 *pSampleRate = cache->sampleRate();
1215 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat);
1262 *pSampleRate = cache->sampleRate();
1265 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat);
1374 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
1388 ALOGV("open(%u, %d, 0x%x, %d, %d, %d)", sampleRate, channelCount, channelMask,
1401 frameCount = (sampleRate*afFrameCount*bufferCount)/afSampleRate;
1417 sampleRate,
1429 sampleRate,
1457 } else if ((mRecycledTrack->getSampleRate() != sampleRate) ||
1373 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags) argument
1774 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags) argument
[all...]
H A DStagefrightRecorder.cpp316 status_t StagefrightRecorder::setParamAudioSamplingRate(int32_t sampleRate) { argument
317 ALOGV("setParamAudioSamplingRate: %d", sampleRate);
318 if (sampleRate <= 0) {
319 ALOGE("Invalid audio sampling rate: %d", sampleRate);
324 mSampleRate = sampleRate;
/frameworks/av/media/libstagefright/
H A DAVIExtractor.cpp339 int sampleRate; local
342 header, &frameSize, &sampleRate, NULL, NULL, &numSamples)) {
353 int64_t timeUs = mBaseTimeUs + (mNumSamplesRead * 1000000ll) / sampleRate;
713 uint32_t sampleRate = U32LE_AT(&data[4]); local
716 track->mMeta->setInt32(kKeySampleRate, sampleRate);
H A DACodec.cpp926 int32_t numChannels, sampleRate; local
928 || !msg->findInt32("sample-rate", &sampleRate)) {
940 encoder, numChannels, sampleRate, bitRate, aacProfile, isADTS != 0);
958 int32_t numChannels, sampleRate, compressionLevel = -1; local
961 || !msg->findInt32("sample-rate", &sampleRate))) {
976 err = setupFlacCodec(encoder, numChannels, sampleRate, compressionLevel);
979 int32_t numChannels, sampleRate; local
982 || !msg->findInt32("sample-rate", &sampleRate)) {
985 err = setupRawAudioFormat(kPortIndexInput, sampleRate, numChannels);
1077 bool encoder, int32_t numChannels, int32_t sampleRate,
1076 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
1259 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
1287 setupRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
[all...]
H A DMPEG4Extractor.cpp1849 int32_t sampleRate = 0; local
1855 sampleRate = br.getBits(24);
1867 sampleRate = kSamplingRate[freqIndex];
1878 if (prevSampleRate != sampleRate) {
1880 "was: %d, now: %d", prevSampleRate, sampleRate);
1883 mLastTrack->meta->setInt32(kKeySampleRate, sampleRate);
H A DOMXCodec.cpp507 int32_t numChannels, sampleRate, aacProfile; local
509 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
520 status_t err = setAACFormat(numChannels, sampleRate, bitRate, aacProfile, isADTS);
537 int32_t numChannels, sampleRate; local
539 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
541 setRawAudioFormat(kPortIndexInput, sampleRate, numChannels);
3273 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) {
3300 pcmParams.nSamplingRate = sampleRate;
3378 int32_t sampleRate; local
3380 CHECK(format->findInt32(kKeySampleRate, &sampleRate));
3272 setRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
3387 setAACFormat( int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
4355 int32_t numChannels, sampleRate; local
4414 int32_t numChannels, sampleRate, bitRate; local
[all...]
H A DMPEG4Writer.cpp1338 int32_t sampleRate; local
1339 bool success = mMeta->findInt32(kKeySampleRate, &sampleRate);
1341 mTimeScale = sampleRate;
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dtns.c134 Word32 sampleRate, /*!< Sampling frequency */
162 tC->tnsStartBand = FreqToBandWithRounding(tC->tnsStartFreq, sampleRate,
166 sampleRate,
171 sampleRate,
201 Word32 sampleRate, /*!< Sampling frequency */
228 tC->tnsStartBand=FreqToBandWithRounding(tC->tnsStartFreq, sampleRate,
232 sampleRate,
237 sampleRate,
133 InitTnsConfigurationLong(Word32 bitRate, Word32 sampleRate, Word16 channels, TNS_CONFIG *tC, PSY_CONFIGURATION_LONG *pC, Word16 active) argument
200 InitTnsConfigurationShort(Word32 bitRate, Word32 sampleRate, Word16 channels, TNS_CONFIG *tC, PSY_CONFIGURATION_SHORT *pC, Word16 active) argument
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp100 AudioCodec *codec, int sampleRate, int sampleCount,
104 bool mix(int32_t *output, int head, int tail, int sampleRate);
166 AudioCodec *codec, int sampleRate, int sampleCount,
178 mSampleRate = sampleRate / 1000;
234 bool AudioStream::mix(int32_t *output, int head, int tail, int sampleRate) argument
253 if (sampleRate == mSampleRate) {
476 bool set(int sampleRate, int sampleCount);
572 bool AudioGroup::set(int sampleRate, int sampleCount) argument
580 mSampleRate = sampleRate;
594 sampleRate, sampleCoun
165 set(int mode, int socket, sockaddr_storage *remote, AudioCodec *codec, int sampleRate, int sampleCount, int codecType, int dtmfType) argument
783 int sampleRate = mGroup->mSampleRate; local
966 int sampleRate = -1; local
[all...]
/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.cc245 SLuint32 sampleRate = *(reinterpret_cast<SLuint32*>(value->data)); local
246 LOGD("sample Rate: %d", sampleRate);
247 *sampleRateOut = sampleRate;
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp167 int android_getMinFrameCount(uint32_t sampleRate) { argument
187 return (afFrameCount*sampleRate*minBufCount)/afSampleRate;
1450 uint32_t sampleRate = sles_to_android_sampleRate(df_pcm->samplesPerSec); local
1461 sampleRate, // sampleRate
/frameworks/base/media/java/android/media/
H A DAudioRecord.java802 int recordSource, int sampleRate, int nbChannels, int audioFormat,
801 native_setup(Object audiorecord_this, int recordSource, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int[] sessionId) argument
H A DAudioTrack.java1207 int streamType, int sampleRate, int nbChannels, int audioFormat,
1206 native_setup(Object audiotrack_this, int streamType, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId) argument
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp1529 int32_t sampleRate = 0; local
1536 sampleRate = (csd[1] & 0x7f) << 17
1552 sampleRate = kSamplingRate[freqIndex];
1560 sampleDesc->mFormat->setInt32("sample-rate", sampleRate);

Completed in 307 milliseconds

1234