Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
Djni-bridge.cpp182 oboe::AudioStream *oboeStream = engine.getCurrentActivity()->getStream(streamIndex); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_setBufferSizeInFrames() local
183 if (oboeStream != nullptr) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_setBufferSizeInFrames()
184 auto result = oboeStream->setBufferSizeInFrames(threshold); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_setBufferSizeInFrames()
196 oboe::AudioStream *oboeStream = engine.getCurrentActivity()->getStream(streamIndex); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferSizeInFrames() local
197 if (oboeStream != nullptr) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferSizeInFrames()
198 result = oboeStream->getBufferSizeInFrames(); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferSizeInFrames()
207 oboe::AudioStream *oboeStream = engine.getCurrentActivity()->getStream(streamIndex); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferCapacityInFrames() local
208 if (oboeStream != nullptr) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferCapacityInFrames()
209 result = oboeStream->getBufferCapacityInFrames(); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getBufferCapacityInFrames()
231 oboe::AudioStream *oboeStream = engine.getCurrentActivity()->getStream(streamIndex); in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getNativeApi() local
[all …]
DNativeAudioContext.cpp62 oboe::AudioStream *oboeStream = entry.second.get(); in getOutputStream() local
63 if (oboeStream->getDirection() == oboe::Direction::Output) { in getOutputStream()
64 return oboeStream; in getOutputStream()
72 oboe::AudioStream *oboeStream = entry.second.get(); in getInputStream() local
73 if (oboeStream != nullptr) { in getInputStream()
74 if (oboeStream->getDirection() == oboe::Direction::Input) { in getInputStream()
75 return oboeStream; in getInputStream()
93 oboe::AudioStream *oboeStream = getStream(streamIndex); in close() local
94 if (oboeStream != nullptr) { in close()
95 oboeStream->close(); in close()
[all …]
DNativeAudioContext.h99 bool isMMapUsed(oboe::AudioStream *oboeStream) { in isMMapUsed() argument
102 AAudioStream *aaudioStream = (AAudioStream *) oboeStream->getUnderlyingStream(); in isMMapUsed()
313 virtual void finishOpen(bool isInput, oboe::AudioStream *oboeStream) {} in finishOpen() argument
526 void finishOpen(bool isInput, oboe::AudioStream *oboeStream) override;
563 void finishOpen(bool isInput, oboe::AudioStream *oboeStream) override;
601 void finishOpen(bool isInput, oboe::AudioStream *oboeStream) override;
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/cpp/
DLatencyTuningCallback.cpp20 oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady() argument
21 if (oboeStream != mStream) { in onAudioReady()
22 mStream = oboeStream; in onAudioReady()
23 mLatencyTuner = std::make_unique<oboe::LatencyTuner>(*oboeStream); in onAudioReady()
27 && oboeStream->getAudioApi() == oboe::AudioApi::AAudio) { in onAudioReady()
30 auto underrunCountResult = oboeStream->getXRunCount(); in onAudioReady()
31 int bufferSize = oboeStream->getBufferSizeInFrames(); in onAudioReady()
40 auto result = DefaultAudioStreamCallback::onAudioReady(oboeStream, audioData, numFrames); in onAudioReady()
DLatencyTuningCallback.h53 …oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numF…
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAudioStreamAAudio.cpp49 AudioStreamAAudio *oboeStream = reinterpret_cast<AudioStreamAAudio*>(userData); in oboe_aaudio_data_callback_proc() local
50 if (oboeStream != nullptr) { in oboe_aaudio_data_callback_proc()
52 oboeStream->callOnAudioReady(stream, audioData, numFrames)); in oboe_aaudio_data_callback_proc()
62 static void oboe_aaudio_error_thread_proc(AudioStreamAAudio *oboeStream, in oboe_aaudio_error_thread_proc() argument
65 oboeStream->requestStop(); in oboe_aaudio_error_thread_proc()
66 if (oboeStream->getCallback() != nullptr) { in oboe_aaudio_error_thread_proc()
67 oboeStream->getCallback()->onErrorBeforeClose(oboeStream, error); in oboe_aaudio_error_thread_proc()
69 oboeStream->close(); in oboe_aaudio_error_thread_proc()
70 if (oboeStream->getCallback() != nullptr) { in oboe_aaudio_error_thread_proc()
72 oboeStream->getCallback()->onErrorAfterClose(oboeStream, error); in oboe_aaudio_error_thread_proc()
[all …]
/third_party/skia/third_party/externals/oboe/include/oboe/
DStabilizedCallback.h31 onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) override;
33 void onErrorBeforeClose(AudioStream *oboeStream, Result error) override { in onErrorBeforeClose() argument
34 return mCallback->onErrorBeforeClose(oboeStream, error); in onErrorBeforeClose()
37 void onErrorAfterClose(AudioStream *oboeStream, Result error) override { in onErrorAfterClose() argument
43 return mCallback->onErrorAfterClose(oboeStream, error); in onErrorAfterClose()
DAudioStreamCallback.h84 AudioStream *oboeStream,
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
DLiveEffectEngine.cpp209 oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady() argument
210 return mFullDuplexPass.onAudioReady(oboeStream, audioData, numFrames); in onAudioReady()
219 void LiveEffectEngine::onErrorBeforeClose(oboe::AudioStream *oboeStream, in onErrorBeforeClose() argument
222 oboe::convertToText(oboeStream->getDirection()), in onErrorBeforeClose()
232 void LiveEffectEngine::onErrorAfterClose(oboe::AudioStream *oboeStream, in onErrorAfterClose() argument
235 oboe::convertToText(oboeStream->getDirection()), in onErrorAfterClose()
DLiveEffectEngine.h41 oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream,
43 void onErrorBeforeClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
44 void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
/third_party/skia/third_party/externals/oboe/src/common/
DStabilizedCallback.cpp39 StabilizedCallback::onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady() argument
53 int64_t idealStartTimeNanos = (mFrameCount * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
63 int64_t numFramesAsNanos = (numFrames * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
68 DataCallbackResult result = mCallback->onAudioReady(oboeStream, audioData, numFrames); in onAudioReady()
DFilterAudioStream.h176 DataCallbackResult onAudioReady(AudioStream *oboeStream, in onAudioReady() argument
180 if (oboeStream->getDirection() == Direction::Output) { in onAudioReady()
190 void onErrorBeforeClose(AudioStream *oboeStream, Result error) override { in onErrorBeforeClose() argument
196 void onErrorAfterClose(AudioStream *oboeStream, Result error) override { in onErrorAfterClose() argument
DAudioStream.cpp199 static void oboe_stop_thread_proc(AudioStream *oboeStream) { in oboe_stop_thread_proc() argument
200 if (oboeStream != nullptr) { in oboe_stop_thread_proc()
201 oboeStream->requestStop(); in oboe_stop_thread_proc()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/
DGame.cpp116 DataCallbackResult Game::onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady() argument
120 bool is16Bit = (oboeStream->getFormat() == AudioFormat::I16); in onAudioReady()
135 mMixer.renderAudio(outputBuffer+(oboeStream->getChannelCount()*i), 1); in onAudioReady()
142 numFrames * oboeStream->getChannelCount()); in onAudioReady()
150 void Game::onErrorAfterClose(AudioStream *oboeStream, Result error){ in onErrorAfterClose() argument
DGame.h56 onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) override;
57 void onErrorAfterClose(AudioStream *oboeStream, Result error) override;
/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/
DSimpleMultiPlayer.h39 oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream, void *audioData,
41 virtual void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
42 virtual void onErrorBeforeClose(oboe::AudioStream * oboeStream, oboe::Result error) override;
DSimpleMultiPlayer.cpp40 DataCallbackResult SimpleMultiPlayer::onAudioReady(AudioStream *oboeStream, void *audioData, in onAudioReady() argument
43 StreamState streamState = oboeStream->getState(); in onAudioReady()
63 void SimpleMultiPlayer::onErrorAfterClose(AudioStream *oboeStream, Result error) { in onErrorAfterClose() argument
/third_party/skia/third_party/externals/oboe/samples/shared/
DDefaultAudioStreamCallback.h41 onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) override { in onAudioReady() argument
59 virtual void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override { in onErrorAfterClose() argument
/third_party/skia/third_party/externals/oboe/tests/
DtestXRunBehaviour.cpp26 …DataCallbackResult onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) overr… in onAudioReady() argument
DtestStreamOpen.cpp25 …DataCallbackResult onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) overr… in onAudioReady() argument
DtestStreamClosedMethods.cpp24 …DataCallbackResult onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) overr… in onAudioReady() argument
/third_party/skia/modules/audioplayer/
DSkAudioPlayer_oboe.cpp45 onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) override { in onAudioReady() argument
/third_party/skia/third_party/externals/oboe/docs/
DFullGuide.md368 AudioStream *oboeStream,
401 AudioStream *oboeStream,
412 (numFrames - result.value()) * oboeStream->getBytesPerFrame());
DOpenSLESMigration.md80 AudioStream *oboeStream,
DGettingStarted.md274 …oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numF…