Home
last modified time | relevance | path

Searched refs:mSampleRate (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/core/java/android/bluetooth/
DBluetoothCodecConfig.java149 private final @SampleRate int mSampleRate; field in BluetoothCodecConfig
164 mSampleRate = sampleRate; in BluetoothCodecConfig()
176 mSampleRate = BluetoothCodecConfig.SAMPLE_RATE_NONE; in BluetoothCodecConfig()
191 && other.mSampleRate == mSampleRate in equals()
210 return Objects.hash(mCodecType, mCodecPriority, mSampleRate, in hashCode()
222 return (mSampleRate != SAMPLE_RATE_NONE) in isValid()
245 if (mSampleRate == SAMPLE_RATE_NONE) { in toString()
248 if ((mSampleRate & SAMPLE_RATE_44100) != 0) { in toString()
251 if ((mSampleRate & SAMPLE_RATE_48000) != 0) { in toString()
254 if ((mSampleRate & SAMPLE_RATE_88200) != 0) { in toString()
[all …]
DBluetoothAudioConfig.java31 private final int mSampleRate; field in BluetoothAudioConfig
36 mSampleRate = sampleRate; in BluetoothAudioConfig()
45 return (bac.mSampleRate == mSampleRate && bac.mChannelConfig == mChannelConfig in equals()
53 return mSampleRate | (mChannelConfig << 24) | (mAudioFormat << 28); in hashCode()
58 return "{mSampleRate:" + mSampleRate + ",mChannelConfig:" + mChannelConfig in toString()
83 out.writeInt(mSampleRate); in writeToParcel()
94 return mSampleRate; in getSampleRate()
/frameworks/av/services/audioflinger/
DFastCapture.cpp37 mReadBuffer(NULL), mReadBufferState(-1), mFormat(Format_Invalid), mSampleRate(0), in FastCapture()
104 mSampleRate = 0; in onStateChange()
107 mSampleRate = Format_sampleRate(mFormat); in onStateChange()
113 dumpState->mSampleRate = mSampleRate; in onStateChange()
133 if (frameCount > 0 && mSampleRate > 0) { in onStateChange()
140 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange()
141 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange()
142 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 in onStateChange()
143 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95 in onStateChange()
144 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75 in onStateChange()
[all …]
DFastMixer.cpp65 mSampleRate(0), in FastMixer()
230 mSampleRate = 0; in onStateChange()
236 mSampleRate = Format_sampleRate(mFormat); in onStateChange()
246 dumpState->mSampleRate = mSampleRate; in onStateChange()
257 if (frameCount > 0 && mSampleRate > 0) { in onStateChange()
261 mMixer = new AudioMixer(frameCount, mSampleRate); in onStateChange()
265 params.sampleRate = mSampleRate; in onStateChange()
277 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange()
278 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange()
279 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 in onStateChange()
[all …]
DFastCaptureDumpState.cpp28 mReadSequence(0), mFramesRead(0), mReadErrors(0), mSampleRate(0), mFrameCount(0) in FastCaptureDumpState()
44 double periodSec = (double) mFrameCount / mSampleRate; in dump()
50 mReadErrors, mSampleRate, mFrameCount, measuredWarmupMs, mWarmupCycles, in dump()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerDyn.cpp193 mConstants.set(128, 8, mSampleRate, mSampleRate); // TODO: set better in AudioResamplerDyn()
360 !isClose(inSampleRate, oldSampleRate, mFilterSampleRate, mSampleRate)) { in setSampleRate()
378 if (mPropertyEnableAtSampleRate >= 0 && mSampleRate >= mPropertyEnableAtSampleRate) { in setSampleRate()
391 fcr = mInSampleRate <= mSampleRate in setSampleRate()
392 ? 0.5 : 0.5 * mSampleRate / mInSampleRate; in setSampleRate()
408 if (inSampleRate >= mSampleRate * 4) { in setSampleRate()
410 } else if (inSampleRate >= mSampleRate * 2) { in setSampleRate()
416 if (mSampleRate <= kVoiceDeviceSampleRate) { in setSampleRate()
417 if (inSampleRate >= mSampleRate * 2) { in setSampleRate()
429 if (inSampleRate >= mSampleRate * 4) { in setSampleRate()
[all …]
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.cpp39 mSampleRate = other.mSampleRate; in copyFrom()
101 if (mSampleRate != AAUDIO_UNSPECIFIED in validate()
102 && (mSampleRate < SAMPLE_RATE_HZ_MIN || mSampleRate > SAMPLE_RATE_HZ_MAX)) { in validate()
103 ALOGD("sampleRate out of range = %d", mSampleRate); in validate()
193 ALOGD("mSampleRate = %6d", mSampleRate); in dump()
DAAudioStreamParameters.h41 return mSampleRate; in getSampleRate()
45 mSampleRate = sampleRate; in setSampleRate()
158 int32_t mSampleRate = AAUDIO_UNSPECIFIED; variable
/frameworks/base/media/java/android/media/
DAudioFormat.java704 mSampleRate = (propertySetMask & AUDIO_FORMAT_HAS_PROPERTY_SAMPLE_RATE) != 0 in AudioFormat()
750 private final int mSampleRate; field in AudioFormat
777 return mSampleRate; in getSampleRate()
840 mChannelCount, mSampleRate, toLogFriendlyEncoding(mEncoding)); in toLogFriendlyString()
860 private int mSampleRate = SAMPLE_RATE_UNSPECIFIED; field in AudioFormat.Builder
877 mSampleRate = af.mSampleRate; in Builder()
892 mSampleRate, in build()
1052 mSampleRate = sampleRate; in setSampleRate()
1071 && (mSampleRate != that.mSampleRate)) in equals()
1080 return Objects.hash(mPropertySetMask, mSampleRate, mEncoding, mChannelMask, in hashCode()
[all …]
/frameworks/av/cmds/stagefright/
DSineSource.cpp15 mSampleRate(sampleRate), in SineSource()
55 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
78 const double k = kFrequency / mSampleRate * (2.0 * M_PI); in read()
93 kKeyTime, ((int64_t)mPhase * 1000000) / mSampleRate); in read()
DAudioPlayer.cpp44 mSampleRate(0), in AudioPlayer()
134 success = format->findInt32(kKeySampleRate, &mSampleRate); in start()
190 offloadInfo.sample_rate = mSampleRate; in start()
200 mSampleRate, numChannels, channelMask, audioFormat, in start()
248 AUDIO_STREAM_MUSIC, mSampleRate, AUDIO_FORMAT_PCM_16_BIT, audioMask, in start()
577 / mSampleRate; in fillBuffer()
637 mSampleRate = sampleRate; in getOutputPlayPositionUs_l()
641 if (mSampleRate != 0) { in getOutputPlayPositionUs_l()
642 playedUs = (static_cast<int64_t>(playedSamples) * 1000000 ) / mSampleRate; in getOutputPlayPositionUs_l()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp98 int32_t mSampleRate; member
234 mSampleRate = U32_LE_AT(&formatSpec[4]); in init()
236 if (mSampleRate == 0) { in init()
333 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, mSampleRate); in init()
348 if (!mSampleRate) in init()
352 1000000LL * num_samples / mSampleRate; in init()
382 CHECK(AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &mSampleRate)); in WAVSource()
447 int64_t samplenumber = (seekTimeUs * mSampleRate) / 1000000; in read()
451 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); in read()
561 timeStampUs = 1000000LL * (mCurrentPos - mOffset) * 320 / 65 / mSampleRate; in read()
[all …]
/frameworks/av/media/libnbaio/
DNBAIO.cpp37 return format.mSampleRate; in Format_sampleRate()
55 ret.mSampleRate = sampleRate; in Format_from_SR_C()
160 return format.mSampleRate != 0 && format.mChannelCount != 0 && in Format_isValid()
166 return format1.mSampleRate == format2.mSampleRate && in Format_isEqual()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp125 int mSampleRate; member in __anon5fc701100111::AudioStream
178 mSampleRate = sampleRate / 1000; in set()
180 mInterval = mSampleCount / mSampleRate; in set()
183 for (mBufferMask = 8; mBufferMask < mSampleRate; mBufferMask <<= 1); in set()
222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode); in set()
250 head *= mSampleRate; in mix()
251 tail *= mSampleRate; in mix()
253 if (sampleRate == mSampleRate) { in mix()
284 if (duration >= 0 && duration < mSampleRate * DTMF_PERIOD) { in encode()
292 if (duration >= mSampleRate * DTMF_PERIOD) { in encode()
[all …]
/frameworks/av/media/libaaudio/src/client/
DIsochronousClockModel.cpp48 , mSampleRate(48000) in IsochronousClockModel()
200 mSampleRate = sampleRate; in setSampleRate()
215 return (AAUDIO_NANOS_PER_SECOND * framesDelta) / mSampleRate; in convertDeltaPositionToTime()
219 return (mSampleRate * nanosDelta) / AAUDIO_NANOS_PER_SECOND; in convertDeltaTimeToPosition()
269 ALOGD("mSampleRate = %6d", mSampleRate); in dump()
DIsochronousClockModel.h63 return mSampleRate; in getSampleRate()
154 int32_t mSampleRate; variable
/frameworks/av/media/libaudioprocessing/include/media/
DAudioResampler.h103 const int32_t mSampleRate; variable
144 + (mSampleRate - 1))/mSampleRate; in getInFrameCountRequired()
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h245 : mSampleRate(0),
260 createChirp<T>(mAddr, mNumFrames, mChannels, mSampleRate, minfreq, maxfreq);
268 createSine<T>(mAddr, mNumFrames, mChannels, mSampleRate, freq);
298 mSampleRate = sampleRate;
302 return mSampleRate;
310 uint32_t mSampleRate;
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.h37 uint32_t getSampleRate() { return mSampleRate;} in getSampleRate()
45 uint32_t mSampleRate; variable
/frameworks/av/media/libstagefright/
DAudioSource.cpp59 mSampleRate(sampleRate), in AudioSource()
209 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
281 … ((int64_t)kAutoRampDurationUs * mSampleRate + 500000LL) / 1000000LL; //Need type casting in read()
284 … ((int64_t)kAutoRampStartUs * mSampleRate + 500000LL) / 1000000LL; //Need type casting in read()
297 if (mSampleRate != mOutSampleRate) { in read()
298 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; in read()
343 mNumFramesReceived + mNumFramesLost) * usPerSec / mSampleRate; in dataCallback()
444 (mSampleRate >> 1)) / mSampleRate; in queueInputBuffer_l()
DAACWriter.cpp49 mSampleRate(-1), in AACWriter()
87 CHECK(meta->findInt32(kKeySampleRate, &mSampleRate)); in addSource()
117 mFrameDurationUs = (kSamplesPerFrame * 1000000LL + (mSampleRate >> 1)) in start()
118 / mSampleRate; in start()
253 CHECK(getSampleRateTableIndex(mSampleRate, &kSampleFreqIndex)); in writeAdtsHeader()
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp59 DefineParam(mSampleRate, C2_PARAMKEY_SAMPLE_RATE) in IntfImpl()
61 .withFields({C2F(mSampleRate, value).greaterThan(0)}) in IntfImpl()
62 .withSetter((Setter<decltype(*mSampleRate)>::StrictValueWithNoDeps)) in IntfImpl()
98 std::shared_ptr<C2StreamSampleRateInfo::output> mSampleRate; member in android::C2SoftRawDec::IntfImpl
/frameworks/base/media/jni/soundpool/
DSound.h68 uint32_t getSampleRate() const { return mSampleRate; } in getSampleRate()
81 uint32_t mSampleRate = 0; variable
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp56 mSampleRate(44100), in SoftFlacEncoder()
207 pcmParams->nSamplingRate = mSampleRate; in internalGetParameter()
226 flacParams->nSampleRate = mSampleRate; in internalGetParameter()
280 mSampleRate = pcmParams->nSamplingRate; in internalSetParameter()
295 ALOGV("will encode %d channels at %dHz", mNumChannels, mSampleRate); in internalSetParameter()
543 mNumChannels, mSampleRate); in configureEncoder()
554 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); in configureEncoder()
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp57 mSampleRate(44100), in SoftAACEncoder2()
178 aacParams->nSampleRate = mSampleRate; in internalGetParameter()
241 pcmParams->nSamplingRate = mSampleRate; in internalGetParameter()
333 mSampleRate = aacParams->nSampleRate; in internalSetParameter()
376 mSampleRate = pcmParams->nSamplingRate; in internalSetParameter()
425 mSampleRate, mNumChannels, mBitRate, mSBRMode, mSBRRatio); in setAudioParams()
433 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_SAMPLERATE, mSampleRate)) { in setAudioParams()
590 (copy * 1000000LL / mSampleRate) in onQueueFilled()

12345