Home
last modified time | relevance | path

Searched refs:getSampleRate (Results 1 – 25 of 78) 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()
130 if (configuration.getSampleRate() != AAUDIO_UNSPECIFIED && in matches()
131 configuration.getSampleRate() != getSampleRate()) { in matches()
DAAudioServiceEndpointShared.cpp77 setSampleRate(mStreamInternal->getSampleRate()); in open()
114 / getSampleRate(); in startSharingThread_l()
DAAudioServiceEndpointMMAP.cpp117 int32_t aaudioSampleRate = getSampleRate(); in open()
237 __func__, getSampleRate(), getSamplesPerFrame(), deviceId, getBufferCapacity()); in open()
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp113 unsigned getSampleRate() const { in getSampleRate() function in android::FLACParser
536 if (getSampleRate() < 8000 || getSampleRate() > 192000) { in init()
537 ALOGE("unsupported sample rate %u", getSampleRate()); in init()
547 AMEDIAFORMAT_KEY_SAMPLE_RATE, getSampleRate()); in init()
552 AMEDIAFORMAT_KEY_DURATION, (getTotalSamples() * 1000000LL) / getSampleRate()); in init()
605 if (mWriteHeader.sample_rate != getSampleRate() || in readBuffer()
609 getSampleRate(), getChannels(), getBitsPerSample(), in readBuffer()
641 int64_t timeUs = (1000000LL * sampleNumber) / getSampleRate(); in readBuffer()
718 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp114 && (getSampleRate() == kMostLikelySampleRateForFast in open()
115 || getSampleRate() == AAUDIO_UNSPECIFIED)) { in open()
163 getSampleRate(), in open()
206 int32_t actualSampleRate = mAudioRecord->getSampleRate(); in open()
207 ALOGW_IF(actualSampleRate != getSampleRate(), in open()
209 getSampleRate(), actualSampleRate); in open()
DAudioStreamTrack.cpp153 getSampleRate(), in open()
191 int32_t actualSampleRate = mAudioTrack->getSampleRate(); in open()
192 ALOGW_IF(actualSampleRate != getSampleRate(), in open()
194 getSampleRate(), actualSampleRate); in open()
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h348 int32_t getSampleRate() { in getSampleRate() function
488 int32_t getSampleRate() { in getSampleRate() function
537 mAudioRecording.allocate(2 * getSampleRate()); in EchoAnalyzer()
538 mAudioRecording.setSampleRate(getSampleRate()); in EchoAnalyzer()
547 mDownCounter = getSampleRate() / 2; in reset()
603 getSampleRate(), in report()
607 / getSampleRate(); in report()
644 return getSampleRate() / 8; in getBlockFrames()
767 setSampleRate(mAudioRecording.getSampleRate()); in load()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp112 request.getConfiguration().setSampleRate(getSampleRate()); in open()
152 setSampleRate(configurationOutput.getSampleRate()); in open()
191 burstMicros = framesPerBurst * static_cast<int64_t>(1000000) / getSampleRate(); in open()
211 mClockModel.setSampleRate(getSampleRate()); in open()
330 / getSampleRate(); in requestStart()
346 / getSampleRate(); in calculateReasonableTimeout()
DIsochronousClockModel.h59 int32_t getSampleRate() const { in getSampleRate() function
/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/services/audioflinger/
DAudioStreamOut.cpp178 uint32_t AudioStreamOut::getSampleRate() const in getSampleRate() function in android::AudioStreamOut
181 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/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/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/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/core/java/android/hardware/soundtrigger/
DSoundTrigger.java803 dest.writeInt(captureFormat.getSampleRate()); in writeToParcel()
822 result = prime * result + captureFormat.getSampleRate(); in hashCode()
863 if (captureFormat.getSampleRate() != other.captureFormat.getSampleRate()) in equals()
882 (", sampleRate=" + captureFormat.getSampleRate())) in toString()
1224 dest.writeInt(captureFormat.getSampleRate()); in writeToParcel()
1270 (", sampleRate=" + captureFormat.getSampleRate())) in toString()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java96 dest.writeInt(mix.getFormat().getSampleRate()); in writeToParcel()
166 textDump += " rate=" + mix.getFormat().getSampleRate() + "Hz\n"; in toLogFriendlyString()
/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()
309 uint32_t sampleRate = mIntf->getSampleRate(); in process()
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.h40 int32_t getSampleRate() const { in getSampleRate() function

1234