SDL/src/video/android
Sam Lantinga 2423c51471 Work around hang in AAudioStream_write() during extended shared object loading while running in a debugger. Observed on a OnePlus 8T (KB2005) running Oxygen OS 11.0.10.10.KB05AA.
The observed behavior is that any nonzero timeout value would hang until the device was paused and resumed. And a zero timeout value would always return 0 frames written even when audio fragments could be heard. Making a manual timeout system unworkable.
None of the straightforward systems imply that there's a detectable problem before the call to AAudioStream_write(). And the callback set within AAudioStreamBuilder_setErrorCallback() does not get called as we enter the hang state.
I've found that AAudioStream_getTimestamp() will report an error state from another thread. So this change codifies that behavior a bit until a better fix or more root cause can be found.
2021-10-13 09:33:51 -07:00
..
SDL_androidclipboard.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidclipboard.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidevents.c Work around hang in AAudioStream_write() during extended shared object loading while running in a debugger. Observed on a OnePlus 8T (KB2005) running Oxygen OS 11.0.10.10.KB05AA. 2021-10-13 09:33:51 -07:00
SDL_androidevents.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidgl.c Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
SDL_androidgl.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidkeyboard.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidkeyboard.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidmessagebox.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidmessagebox.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidmouse.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidmouse.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidtouch.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidtouch.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidvideo.c Android: don't need to set the SurfaceHolder format from java code 2021-04-22 18:06:17 +02:00
SDL_androidvideo.h Android: don't need to set the SurfaceHolder format from java code 2021-04-22 18:06:17 +02:00
SDL_androidvulkan.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidvulkan.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidwindow.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_androidwindow.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00