You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onError*() methods should check the state of the stream as shown in the following example. You should not close or reopen the stream from the callback, use another thread instead.
* in this method. There is no need to create a new thread.
in hello-oboe sample says there is no need to create a new thread to restart a stream. I can see that onError*() callbacks are invoked on a different (worker?) thread from onAudioReady() which would suggest one can restart the stream without creating a dedicated thread, at least on Android 8.1. So which one is true?
The text was updated successfully, but these errors were encountered:
Hey,
The full Oboe guide in https://github.com/google/oboe/blob/c5c3cc17f78974bf005bf33a2de1a093ac55cc07/docs/FullGuide.md says:
The onError*() methods should check the state of the stream as shown in the following example. You should not close or reopen the stream from the callback, use another thread instead.
On the other hand,
oboe/samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp
Line 270 in c5c3cc1
hello-oboe
sample says there is no need to create a new thread to restart a stream. I can see thatonError*()
callbacks are invoked on a different (worker?) thread fromonAudioReady()
which would suggest one can restart the stream without creating a dedicated thread, at least on Android 8.1. So which one is true?The text was updated successfully, but these errors were encountered: