/frameworks/av/services/audioflinger/ |
H A D | Threads.h | 243 uint32_t sampleRate() const { return mSampleRate; } function in class:ThreadBase 563 uint32_t sampleRate, 1153 * and sampleRate to a destination buffer. 1254 uint32_t sampleRate,
|
H A D | AudioFlinger.cpp | 575 uint32_t sampleRate, 612 if (sampleRate == 0) { 613 ALOGE("createTrack() invalid sample rate %u", sampleRate); 678 track = thread->createTrack_l(client, streamType, sampleRate, format, 731 uint32_t AudioFlinger::sampleRate(audio_io_handle_t ioHandle) const function in class:android::AudioFlinger 736 ALOGW("sampleRate() unknown thread %d", ioHandle); 739 return thread->sampleRate(); 1211 size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument 1218 if ((sampleRate == 0) || 1228 proposed.sample_rate = sampleRate; 573 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *frameCount, IAudioFlinger::track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t pid, pid_t tid, audio_session_t *sessionId, int clientUid, status_t *status) argument 1459 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *frameCount, IAudioFlinger::track_flags_t *flags, pid_t pid, pid_t tid, int clientUid, audio_session_t *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status) argument 3059 uint32_t sampleRate = Format_sampleRate(format); local [all...] |
H A D | Threads.cpp | 1750 uint32_t sampleRate, 1777 (sampleRate == mSampleRate) && 1799 "sampleRate=%u mSampleRate=%u " 1803 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMask); 1825 sampleRate, mNormalFrameCount, 1837 if (sampleRate != mSampleRate || format != mFormat || channelMask != mChannelMask) { 1838 ALOGE("createTrack_l() Bad parameter: sampleRate %u format %#x, channelMask 0x%08x " 1840 sampleRate, format, channelMask, mOutput, mFormat); 1848 if (sampleRate != mSampleRate || format != mFormat || channelMask != mChannelMask) { 1849 ALOGE("createTrack_l() Bad parameter: sampleRate 1747 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, IAudioFlinger::track_flags_t *flags, pid_t tid, int uid, status_t *status) argument 4040 const uint32_t sampleRate = track->mAudioTrackServerProxy->getSampleRate(); local 6276 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, audio_session_t sessionId, size_t *notificationFrames, int uid, IAudioFlinger::track_flags_t *flags, pid_t tid, status_t *status) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioRecord.java | 376 int[] sampleRate = new int[] {mSampleRate}; 382 mAudioAttributes, sampleRate, mChannelMask, mChannelIndexMask, 390 mSampleRate = sampleRate[0]; 1736 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, 1734 native_setup(Object audiorecord_this, Object attributes, int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, int buffSizeInBytes, int[] sessionId, String opPackageName, long nativeRecordInJavaObj) argument
|
H A D | AudioTrack.java | 513 int[] sampleRate = new int[] {mSampleRate}; 518 sampleRate, mChannelMask, mChannelIndexMask, mAudioFormat, 525 mSampleRate = sampleRate[0]; 578 rates /*sampleRate - NA*/, 2767 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, 2765 native_setup(Object audiotrack_this, Object attributes, int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId, long nativeAudioTrack) argument
|
H A D | MediaCodecInfo.java | 1003 private boolean supports(Integer sampleRate, Integer inputChannels) { argument 1009 if (sampleRate != null) { 1011 mSampleRateRanges, sampleRate); 1022 public boolean isSampleRateSupported(int sampleRate) { argument 1023 return supports(sampleRate, null); 1179 Integer sampleRate = (Integer)map.get(MediaFormat.KEY_SAMPLE_RATE); 1182 if (!supports(sampleRate, channels)) {
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 1652 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, 1660 ALOGV("open(%u, %d, 0x%x, 0x%x, %d, %d 0x%x)", sampleRate, channelCount, channelMask, 1686 (unsigned long long)sampleRate * afFrameCount / afSampleRate; 1731 } else if ((mRecycledTrack->getSampleRate() != sampleRate) || 1734 mRecycledTrack->getSampleRate(), sampleRate, 1771 sampleRate, 1797 sampleRate, 1863 mSampleRateHz = sampleRate; 1865 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); 1651 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, const audio_offload_info_t *offloadInfo, bool doNotReconnect, uint32_t suggestedFrameCount) argument
|
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Extractor.cpp | 3228 int32_t sampleRate = 0; local 3232 sampleRate = br.getBits(24); 3242 sampleRate = kSamplingRate[freqIndex]; 3417 if (prevSampleRate != sampleRate) { 3419 "was: %d, now: %d", prevSampleRate, sampleRate); 3422 mLastTrack->meta->setInt32(kKeySampleRate, sampleRate);
|
H A D | MPEG4Writer.cpp | 1571 int32_t sampleRate; local 1572 bool success = mMeta->findInt32(kKeySampleRate, &sampleRate); 1574 mTimeScale = sampleRate;
|
H A D | ACodec.cpp | 2107 int32_t numChannels, sampleRate; local 2109 || !msg->findInt32("sample-rate", &sampleRate)) { 2116 sampleRate, 2120 int32_t numChannels, sampleRate; local 2122 || !msg->findInt32("sample-rate", &sampleRate)) { 2169 encoder, numChannels, sampleRate, bitRate, aacProfile, 2186 int32_t sampleRate; local 2187 if (!msg->findInt32("sample-rate", &sampleRate)) { 2188 sampleRate = 8000; 2190 err = setupG711Codec(encoder, sampleRate, numChannel 2193 int32_t numChannels = 0, sampleRate = 0, compressionLevel = -1; local 2222 int32_t numChannels, sampleRate; local 2232 int32_t sampleRate; local 2241 int32_t sampleRate; local 2537 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS, int32_t sbrMode, int32_t maxOutputChannelCount, const drcParams_t& drc, int32_t pcmLimiterEnable) argument 2685 setupAC3Codec( bool encoder, int32_t numChannels, int32_t sampleRate) argument 2723 setupEAC3Codec( bool encoder, int32_t numChannels, int32_t sampleRate) argument 2834 setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels) argument 2843 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument 2871 setupRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels, AudioEncoding encoding) argument [all...] |
/frameworks/wilhelm/include/SLES/ |
H A D | OpenSLES.h | 2335 SLmilliHertz sampleRate; member in struct:SLAudioEncoderSettings_
|
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL.h | 2738 XAmilliHertz sampleRate; member in struct:XAAudioEncoderSettings_ 3103 XAmilliHertz sampleRate; member in struct:XAAudioStreamInformation_
|