Home
last modified time | relevance | path

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

123

/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DOboeAudioStream.java60 requestedConfiguration.getSampleRate(), in open()
82 actualConfiguration.setSampleRate(getSampleRate()); in open()
173 public int getSampleRate() { in getSampleRate() method in OboeAudioStream
174 return getSampleRate(streamIndex); in getSampleRate()
176 public native int getSampleRate(int streamIndex); in getSampleRate() method in OboeAudioStream
DAudioMidiTester.java160 int numSamples = (int) (mRecorder.getSampleRate() * ANALYSIS_TIME_DELAY); in trigger()
177 int numSamples = (int) (mRecorder.getSampleRate() * ANALYSIS_TIME_TOTAL); in analyzeCapturedAudio()
184 result.frameRate = mRecorder.getSampleRate(); in analyzeCapturedAudio()
DAudioStreamBase.java162 public int getSampleRate() { in getSampleRate() method in AudioStreamBase
163 return mActualStreamConfiguration.getSampleRate(); in getSampleRate()
/external/oboe/src/common/
DAudioStreamBuilder.cpp85 return (getSampleRate() == oboe::Unspecified || getSampleRate() == other.getSampleRate()) in isCompatible()
132 if (getSampleRate() == oboe::Unspecified) { in openStream()
133 parentBuilder.setSampleRate(tempStream->getSampleRate()); in openStream()
DQuirksManager.cpp57 builder.getSampleRate() == oboe::Unspecified in isAAudioMMapPossible()
58 || builder.getSampleRate() == kCommonNativeRate in isAAudioMMapPossible()
164 if (builder.getSampleRate() != oboe::Unspecified in isConversionNeeded()
DFilterAudioStream.cpp51 mRateScaler = ((double) sourceStream->getSampleRate()) / sinkStream->getSampleRate(); in configureFlowGraph()
DStabilizedCallback.cpp53 int64_t idealStartTimeNanos = (mFrameCount * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
63 int64_t numFramesAsNanos = (numFrames * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
DDataConversionFlowGraph.cpp84 int32_t sourceSampleRate = sourceStream->getSampleRate(); in configure()
89 int32_t sinkSampleRate = sinkStream->getSampleRate(); in configure()
/external/skia/modules/audioplayer/
DSkAudioPlayer_oboe.cpp33 builder.setSampleRate(fReader->getSampleRate()); in OboeAudioPlayer()
73 return fNumSampleFrames * fStream->getChannelCount() / fStream->getSampleRate(); in onGetDuration()
77 return (fReadFrameIndex * fStream->getChannelCount()) / fStream->getSampleRate(); in onGetTime()
81 fReadFrameIndex = (t * fStream->getSampleRate()) / fStream->getChannelCount(); in onSetTime()
/external/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DLatencyAnalyzer.h163 int32_t getSampleRate() const { in getSampleRate() function
336 int32_t getSampleRate() const { in getSampleRate() function
391 int32_t maxLatencyFrames = getSampleRate() * kMaxLatencyMillis / kMillisPerSecond; in PulseLatencyAnalyzer()
392 int32_t numPulseBits = getSampleRate() * kPulseLengthMillis in PulseLatencyAnalyzer()
397 mAudioRecording.setSampleRate(getSampleRate()); in PulseLatencyAnalyzer()
421 mDownCounter = (int32_t) (getSampleRate() * kBackgroundMeasurementLengthSeconds); in reset()
475 / getSampleRate(); in analyze()
/external/oboe/apps/OboeTester/app/src/main/cpp/
DFullDuplexEcho.cpp21 int32_t delayFrames = (int32_t) (kMaxDelayTimeSeconds * getOutputStream()->getSampleRate()); in start()
42 float delayFrames = mDelayTimeSeconds * getOutputStream()->getSampleRate(); in onBothStreamsReady()
DNativeAudioContext.cpp219 mSampleRate = oboeStream->getSampleRate(); in open()
347 mTriangleOscillator.setSampleRate(outputStream->getSampleRate()); in configureForStart()
353 mLinearShape.setMaximum(outputStream->getSampleRate() * 0.5); // Nyquist in configureForStart()
356 mExponentialShape.setMaximum(outputStream->getSampleRate() * 0.5); // Nyquist in configureForStart()
363 sineOscillators[i].setSampleRate(outputStream->getSampleRate()); in configureForStart()
515 sawPingGenerator.setSampleRate(outputStream->getSampleRate()); in configureForStart()
643 sineOscillator->setSampleRate(outputStream->getSampleRate()); in configureForStart()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DAudioSampleEntry.java81 public long getSampleRate() { in getSampleRate() method in AudioSampleEntry
261 IsoTypeWriter.writeUInt32(byteBuffer, getSampleRate()); in getContent()
263 IsoTypeWriter.writeUInt32(byteBuffer, getSampleRate() << 16); in getContent()
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioRecord.java150 audioRecord.getChannelCount(), audioRecord.getSampleRate(), data)); in run()
430 + "sample rate: " + audioRecord.getSampleRate()); in logMainParameters()
623 .append(format.getSampleRate()) in logActiveRecordingConfigs()
638 .append(format.getSampleRate()) in logActiveRecordingConfigs()
672 && (config.getClientFormat().getSampleRate() == format.getSampleRate()) in verifyAudioConfig()
677 && (config.getFormat().getSampleRate() > 0) in verifyAudioConfig()
/external/oboe/apps/fxlab/app/src/main/cpp/
DDuplexEngine.cpp35 SAMPLE_RATE = inStream->getSampleRate(); in beginStreams()
68 ->setSampleRate(inStream->getSampleRate()) in openOutStream()
/external/webrtc/sdk/android/api/org/webrtc/audio/
DJavaAudioDeviceModule.java52 this.inputSampleRate = WebRtcAudioManager.getSampleRate(audioManager); in Builder()
53 this.outputSampleRate = WebRtcAudioManager.getSampleRate(audioManager); in Builder()
268 public int getSampleRate() { in getSampleRate() method in JavaAudioDeviceModule.AudioSamples
/external/oboe/samples/hello-oboe/src/main/cpp/
DHelloOboeEngine.cpp59 … int64_t frameTimeDelta = (frameIndexDelta * oboe::kNanosPerSecond) / (mStream->getSampleRate()); in getCurrentOutputLatencyMillis()
138 mAudioSource = std::make_shared<SoundGenerator>(mStream->getSampleRate(), in start()
/external/exoplayer/tree/extensions/flac/src/main/jni/include/
Dflac_parser.h54 unsigned getSampleRate() const { return mStreamInfo.sample_rate; } in getSampleRate() function
74 return (1000000LL * mWriteHeader.number.sample_number) / getSampleRate(); in getLastFrameTimestamp()
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioRecord.java101 this.sampleRate = audioRecord.getSampleRate(); in AudioSamples()
113 public int getSampleRate() { in getSampleRate() method in WebRtcAudioRecord.AudioSamples
332 + "sample rate: " + audioRecord.getSampleRate()); in logMainParameters()
/external/oboe/samples/RhythmGame/src/main/cpp/
DGame.cpp129 mAudioStream->getSampleRate()); in onAudioReady()
212 .sampleRate = mAudioStream->getSampleRate() in setupAudioSources()
/external/exoplayer/tree/extensions/flac/src/main/jni/
Dflac_parser.cc389 if (mWriteHeader.sample_rate != getSampleRate() || in readBuffer()
395 getSampleRate(), getChannels(), getBitsPerSample(), in readBuffer()
427 unsigned sampleRate = getSampleRate(); in getSeekPositions()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DSyncSampleIntersectFinderImpl.java99 if (ase.getSampleRate() < minSampleRate) { in sampleNumbers()
100 minSampleRate = ase.getSampleRate(); in sampleNumbers()
118 double factor = (double) ase.getSampleRate() / (double) minSampleRate; in sampleNumbers()
/external/oboe/samples/parselib/src/main/cpp/wav/
DWavStreamReader.h38 int getSampleRate() { return mFmtChunk->mSampleRate; } in getSampleRate() function
/external/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DOscillatorBase.h43 float getSampleRate() { in getSampleRate() function
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DAppendTrack.java106 if (ase1.getSampleRate() == ase2.getSampleRate()) { in mergeAudioSampleEntries()
107 ase.setSampleRate(ase1.getSampleRate()); in mergeAudioSampleEntries()

123