Searched refs:sampleRate (Results 1 - 25 of 109) sorted by last modified time

12345

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h2738 XAmilliHertz sampleRate; member in struct:XAAudioEncoderSettings_
3103 XAmilliHertz sampleRate; member in struct:XAAudioStreamInformation_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES.h2335 SLmilliHertz sampleRate; member in struct:SLAudioEncoderSettings_
/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/wilhelm/tests/examples/
H A DslesTestFeedback.cpp38 static SLuint32 sampleRate = 44100; // -s# variable
214 sampleRate = atoi(&arg[2]);
215 switch (sampleRate) {
228 (unsigned) sampleRate);
303 pcm.samplesPerSec = sampleRate * 1000;
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c685 printf(" sampleRate = %u\n", audioStreamInformation.sampleRate);
/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/base/voip/jni/rtp/
H A DAmrCodec.cpp53 int set(int sampleRate, const char *fmtp);
67 int AmrCodec::set(int sampleRate, const char *fmtp) argument
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
211 int set(int sampleRate, const char *fmtp) { argument
212 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
H A DAudioCodec.h29 virtual int set(int sampleRate, const char *fmtp) = 0;
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...]
H A DG711Codec.cpp37 int set(int sampleRate, const char *fmtp) { argument
38 mSampleCount = sampleRate / 50;
88 int set(int sampleRate, const char *fmtp) { argument
89 mSampleCount = sampleRate / 50;
H A DGsmCodec.cpp42 int set(int sampleRate, const char *fmtp) { argument
43 return (sampleRate == 8000 && mEncode && mDecode) ? 160 : -1;
/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
H A DMediaFormat.java261 * @param sampleRate The sampling rate of the content.
266 int sampleRate,
270 format.setInteger(KEY_SAMPLE_RATE, sampleRate);
264 createAudioFormat( String mime, int sampleRate, int channelCount) 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);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp423 int32_t sampleRate; local
425 CHECK(mFormat->findInt32(kKeySampleRate, &sampleRate));
429 sampleRate, numChannels);
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp89 static bool GetSampleRateIndex(int32_t sampleRate, size_t *tableIndex) { argument
99 if (sampleRate == kSampleRateTable[index]) {
189 int32_t sampleRate, numChannels; local
191 desc.c_str(), &sampleRate, &numChannels);
194 CHECK(GetSampleRateIndex(sampleRate, &mSampleRateIndex));
H A DAPacketSource.cpp473 int32_t sampleRate, numChannels; local
475 desc.c_str(), &sampleRate, &numChannels);
477 mFormat->setInt32(kKeySampleRate, sampleRate);
489 int32_t sampleRate, numChannels; local
491 desc.c_str(), &sampleRate, &numChannels);
493 mFormat->setInt32(kKeySampleRate, sampleRate);
496 if (sampleRate != 8000 || numChannels != 1) {
502 int32_t sampleRate, numChannels; local
504 desc.c_str(), &sampleRate, &numChannels);
506 mFormat->setInt32(kKeySampleRate, sampleRate);
553 int32_t sampleRate, numChannels; local
[all...]
H A DARTPWriter.cpp475 int32_t sampleRate, numChannels; local
476 CHECK(mSource->getFormat()->findInt32(kKeySampleRate, &sampleRate));
480 CHECK_EQ(sampleRate, (mMode == AMR_NB) ? 8000 : 16000);
483 sdp.append(StringPrintf("/%d/%d", sampleRate, numChannels));
H A DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; local
136 desc, &sampleRate, &numChannels);
138 format->setInt32(kKeySampleRate, sampleRate);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp295 int32_t sampleRate; local
296 CHECK(mFormat->findInt32("sample-rate", &sampleRate));
297 CHECK(sampleRate == 44100 || sampleRate == 48000);
304 unsigned sampling_frequency = (sampleRate == 44100) ? 1 : 2;
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp444 uint32_t sampleRate,
505 track = thread->createTrack_l(client, streamType, sampleRate, format,
547 uint32_t AudioFlinger::sampleRate(audio_io_handle_t output) const function in class:android::AudioFlinger
552 ALOGW("sampleRate() unknown thread %d", output);
555 return thread->sampleRate();
978 size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
989 sample_rate: sampleRate,
1712 uint32_t sampleRate,
1752 (sampleRate == mSampleRate) &&
1769 "mFrameCount=%d format=%d isLinear=%d channelMask=%#x sampleRate
441 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
1709 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument
3625 unsigned sampleRate = Format_sampleRate(format); local
4140 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4284 int AudioFlinger::ThreadBase::TrackBase::sampleRate() const { function in class:android::AudioFlinger::ThreadBase::TrackBase
4314 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags) argument
4854 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4872 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
5368 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId) argument
5490 OutputTrack( PlaybackThread *playbackThread, DuplicatingThread *sourceThread, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount) argument
5878 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
5986 RecordThread(const sp<AudioFlinger>& audioFlinger, AudioStreamIn *input, uint32_t sampleRate, audio_channel_mask_t channelMask, audio_io_handle_t id, audio_devices_t device) argument
6241 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument
[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...]
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 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);

Completed in 203 milliseconds

12345