Home
last modified time | relevance | path

Searched refs:mSampleRate (Results 1 – 25 of 107) 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.cpp66 mSampleRate(0), in FastMixer()
231 mSampleRate = 0; in onStateChange()
237 mSampleRate = Format_sampleRate(mFormat); in onStateChange()
247 dumpState->mSampleRate = mSampleRate; in onStateChange()
258 if (frameCount > 0 && mSampleRate > 0) { in onStateChange()
262 mMixer = new AudioMixer(frameCount, mSampleRate); in onStateChange()
266 params.sampleRate = mSampleRate; in onStateChange()
278 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange()
279 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange()
280 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()
49 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()
100 if (mSampleRate != AAUDIO_UNSPECIFIED in validate()
101 && (mSampleRate < SAMPLE_RATE_HZ_MIN || mSampleRate > SAMPLE_RATE_HZ_MAX)) { in validate()
102 ALOGD("sampleRate out of range = %d", mSampleRate); in validate()
188 ALOGD("mSampleRate = %6d", mSampleRate); in dump()
DAAudioStreamParameters.h41 return mSampleRate; in getSampleRate()
45 mSampleRate = sampleRate; in setSampleRate()
150 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/libaaudio/src/client/
DIsochronousClockModel.cpp32 , mSampleRate(48000) in IsochronousClockModel()
172 mSampleRate = sampleRate; in setSampleRate()
190 return (AAUDIO_NANOS_PER_SECOND * framesDelta) / mSampleRate; in convertDeltaPositionToTime()
194 return (mSampleRate * nanosDelta) / AAUDIO_NANOS_PER_SECOND; in convertDeltaTimeToPosition()
246 ALOGD("mSampleRate = %6d", mSampleRate); in dump()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp96 int32_t mSampleRate; member
232 mSampleRate = U32_LE_AT(&formatSpec[4]); in init()
234 if (mSampleRate == 0) { in init()
331 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, mSampleRate); in init()
346 if (!mSampleRate) in init()
350 1000000LL * num_samples / mSampleRate; in init()
380 CHECK(AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &mSampleRate)); in WAVSource()
445 int64_t samplenumber = (seekTimeUs * mSampleRate) / 1000000; in read()
449 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); in read()
559 timeStampUs = 1000000LL * (mCurrentPos - mOffset) * 320 / 65 / mSampleRate; in read()
[all …]
/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/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/base/core/java/android/view/textclassifier/
DGenerateLinksLogger.java46 private final int mSampleRate; field in GenerateLinksLogger
54 mSampleRate = sampleRate; in GenerateLinksLogger()
61 mSampleRate = sampleRate; in GenerateLinksLogger()
105 if (mSampleRate <= 1) { in shouldLog()
108 return mRng.nextInt(mSampleRate) == 0; in shouldLog()
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp66 DefineParam(mSampleRate, C2_PARAMKEY_SAMPLE_RATE) in IntfImpl()
68 .withFields({C2F(mSampleRate, value).oneOf({ in IntfImpl()
70 .withSetter((Setter<decltype(*mSampleRate)>::StrictValueWithNoDeps)) in IntfImpl()
100 uint32_t getSampleRate() const { return mSampleRate->value; } in getSampleRate()
106 std::shared_ptr<C2StreamSampleRateInfo::input> mSampleRate; member in android::C2SoftOpusEnc::IntfImpl
135 mSampleRate = mIntf->getSampleRate(); in configureEncoder()
139 mNumSamplesPerFrame = mSampleRate / (1000 / mFrameDurationMs); in configureEncoder()
158 mEncoder = opus_multistream_encoder_create(mSampleRate, mChannelCount, in configureEncoder()
412 mCodecDelay = lookahead * 1000000000ll / mSampleRate; in process()
422 int headerLen = WriteOpusHeaders(opusHeader, mSampleRate, header, in process()
[all …]
/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/include/media/
DAudioResampler.h103 const int32_t mSampleRate; variable
144 + (mSampleRate - 1))/mSampleRate; in getInFrameCountRequired()
/frameworks/av/media/libaudioprocessing/include/media/
DAudioResampler.h103 const int32_t mSampleRate; variable
144 + (mSampleRate - 1))/mSampleRate; in getInFrameCountRequired()
/frameworks/av/media/libstagefright/
DAudioSource.cpp59 mSampleRate(sampleRate), in AudioSource()
206 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
278 … ((int64_t)kAutoRampDurationUs * mSampleRate + 500000LL) / 1000000LL; //Need type casting in read()
281 … ((int64_t)kAutoRampStartUs * mSampleRate + 500000LL) / 1000000LL; //Need type casting in read()
294 if (mSampleRate != mOutSampleRate) { in read()
295 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; in read()
340 mNumFramesReceived + mNumFramesLost) * usPerSec / mSampleRate; in dataCallback()
441 (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/libstagefright/codecs/mp3dec/test/
Dmp3reader.h37 uint32_t getSampleRate() { return mSampleRate;} in getSampleRate()
45 uint32_t mSampleRate; variable
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DEncoderTest.java86 private int mSampleRate; field in EncoderTest
140 this.mSampleRate = samplerate; in EncoderTest()
261 encodeFormat = MediaFormat.createAudioFormat(mMime, mSampleRate, mNumChannel); in testEncoder()
267 mSampleRate, frameSize, asyncMode); in testEncoder()
280 inputReference = mInputFile + "_" + mSampleRate + "hz_" + mNumChannel + "ch_" + in testEncoder()
283 (eleStream.getChannel().size() / (mSampleRate * mNumChannel)) * 1000000; in testEncoder()
307 mSampleRate, mNumChannel); in testNativeEncoder()
/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

12345