Home
last modified time | relevance | path

Searched refs:getSampleRate (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp152 setSampleRate(configurationInput.getSampleRate()); in open()
153 if (getSampleRate() == AAUDIO_UNSPECIFIED) { in open()
154 setSampleRate(endpoint->getSampleRate()); in open()
155 } else if (getSampleRate() != endpoint->getSampleRate()) { in open()
157 __func__, getSampleRate(), endpoint->getSampleRate()); in open()
DAAudioServiceEndpoint.cpp56 result << " Sample Rate: " << getSampleRate() << "\n"; in dump()
155 if (configuration.getSampleRate() != AAUDIO_UNSPECIFIED && in matches()
156 configuration.getSampleRate() != getSampleRate()) { in matches()
DAAudioServiceEndpointShared.cpp77 setSampleRate(mStreamInternal->getSampleRate()); in open()
114 / getSampleRate(); in startSharingThread_l()
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp115 unsigned getSampleRate() const { in getSampleRate() function in android::FLACParser
538 if (getSampleRate() < 8000 || getSampleRate() > 192000) { in init()
539 ALOGE("unsupported sample rate %u", getSampleRate()); in init()
549 AMEDIAFORMAT_KEY_SAMPLE_RATE, getSampleRate()); in init()
554 AMEDIAFORMAT_KEY_DURATION, (getTotalSamples() * 1000000LL) / getSampleRate()); in init()
607 if (mWriteHeader.sample_rate != getSampleRate() || in readBuffer()
611 getSampleRate(), getChannels(), getBitsPerSample(), in readBuffer()
643 int64_t timeUs = (1000000LL * sampleNumber) / getSampleRate(); in readBuffer()
720 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
/frameworks/av/media/libaaudio/examples/loopback/src/analyzer/
DLatencyAnalyzer.h163 int32_t getSampleRate() const { in getSampleRate() function
325 int32_t getSampleRate() const { in getSampleRate() function
380 int32_t maxLatencyFrames = getSampleRate() * kMaxLatencyMillis / kMillisPerSecond; in PulseLatencyAnalyzer()
381 int32_t numPulseBits = getSampleRate() * kPulseLengthMillis in PulseLatencyAnalyzer()
386 mAudioRecording.setSampleRate(getSampleRate()); in PulseLatencyAnalyzer()
409 mDownCounter = getSampleRate() / 2; in reset()
464 / getSampleRate(); in analyze()
DGlitchAnalyzer.h159 mForceGlitchCounter = getSampleRate(); in processInputFrame()
368 mSinePeriod = getSampleRate() / kTargetGlitchFrequency; in prepareToTest()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp114 && (getSampleRate() == kMostLikelySampleRateForFast in open()
115 || getSampleRate() == AAUDIO_UNSPECIFIED)) { in open()
165 getSampleRate(), in open()
214 int32_t actualSampleRate = mAudioRecord->getSampleRate(); in open()
215 ALOGW_IF(actualSampleRate != getSampleRate(), in open()
217 getSampleRate(), actualSampleRate); in open()
DAudioStreamTrack.cpp153 getSampleRate(), in open()
197 int32_t actualSampleRate = mAudioTrack->getSampleRate(); in open()
198 ALOGW_IF(actualSampleRate != getSampleRate(), in open()
200 getSampleRate(), actualSampleRate); in open()
282 || mAudioTrack->getSampleRate() != getSampleRate() in processCallback()
/frameworks/base/core/java/android/bluetooth/
DBluetoothCodecStatus.java108 int sampleRate = codecConfig.getSampleRate(); in isCodecConfigSelectable()
109 if ((sampleRate & selectableConfig.getSampleRate()) == 0 in isCodecConfigSelectable()
DBluetoothAudioConfig.java93 public int getSampleRate() { in getSampleRate() method in BluetoothAudioConfig
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp117 request.getConfiguration().setSampleRate(getSampleRate()); in open()
163 setSampleRate(configurationOutput.getSampleRate()); in open()
203 burstMicros = framesPerBurst * static_cast<int64_t>(1000000) / getSampleRate(); in open()
224 mClockModel.setSampleRate(getSampleRate()); in open()
373 / getSampleRate(); in requestStart()
389 / getSampleRate(); in calculateReasonableTimeout()
DIsochronousClockModel.h62 int32_t getSampleRate() const { in getSampleRate() function
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.h37 uint32_t getSampleRate() { return mSampleRate;} in getSampleRate() function
Dmp3dec_test.cpp79 sfInfo.samplerate = mp3Reader.getSampleRate(); in main()
/frameworks/av/services/audioflinger/
DAudioStreamOut.cpp182 uint32_t AudioStreamOut::getSampleRate() const in getSampleRate() function in android::AudioStreamOut
185 return stream->getSampleRate(&result) == OK ? result : 0; in getSampleRate()
DAudioStreamOut.h92 virtual uint32_t getSampleRate() const;
DSpdifStreamOut.h79 virtual uint32_t getSampleRate() const { return mApplicationSampleRate; } in getSampleRate() function
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacEnc.cpp101 uint32_t getSampleRate() const { return mSampleRate->value; } in getSampleRate() function in android::C2SoftFlacEnc::IntfImpl
248 const uint32_t sampleRate = mIntf->getSampleRate(); in process()
367 …OGV("%s numChannel=%d, sampleRate=%d", __func__, mIntf->getChannelCount(), mIntf->getSampleRate()); in configureEncoder()
378 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mIntf->getSampleRate()); in configureEncoder()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimpleRecorder.h60 return getSampleRate(); // alias in getFramesPerSecond()
66 int32_t getSampleRate() const { in getSampleRate() function
/frameworks/base/media/jni/soundpool/
DSound.h68 uint32_t getSampleRate() const { return mSampleRate; } in getSampleRate() function
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.h56 unsigned getSampleRate() const { in getSampleRate() function
DFLACDecoder.cpp373 if (mWriteHeader.sample_rate != getSampleRate() || in decodeOneFrame()
377 getSampleRate(), getChannels(), getBitsPerSample(), in decodeOneFrame()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java96 dest.writeInt(mix.getFormat().getSampleRate()); in writeToParcel()
170 textDump += " rate=" + mix.getFormat().getSampleRate() + "Hz\n"; in toLogFriendlyString()
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.h40 int32_t getSampleRate() const { in getSampleRate() function
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp119 uint32_t getSampleRate() const { return mSampleRate->value; } in getSampleRate() function in android::C2SoftAacEnc::IntfImpl
248 mIntf->getSampleRate(), mIntf->getChannelCount(), mIntf->getBitrate(), in setAudioParams()
257 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_SAMPLERATE, mIntf->getSampleRate())) { in setAudioParams()
333 uint32_t sampleRate = mIntf->getSampleRate(); in process()

1234