SDL/src/audio
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
..
aaudio 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
alsa alsa: Map 7.1 audio channels to match what Windows and macOS expect. 2021-09-21 16:49:44 -04:00
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
arts Updated copyright for 2021 2021-01-02 10:25:38 -08:00
coreaudio Removed duplicate SDL_AtomicGet() 2021-05-28 12:29:54 -04:00
directsound Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
disk audio: Changed a disk and dummy backends to use _this instead of this. 2021-04-06 18:35:20 -04:00
dsp Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07:00
dummy audio: Fixed assertion failure if trying to use dummy backend. 2021-04-06 18:35:20 -04:00
emscripten emscripten: Feed silence to device when paused 2021-08-14 12:24:35 +01:00
esd Updated copyright for 2021 2021-01-02 10:25:38 -08:00
fusionsound Updated copyright for 2021 2021-01-02 10:25:38 -08:00
haiku Updated copyright for 2021 2021-01-02 10:25:38 -08:00
jack Updated copyright for 2021 2021-01-02 10:25:38 -08:00
nacl Updated copyright for 2021 2021-01-02 10:25:38 -08:00
nas Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
netbsd Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07:00
openslES OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails 2021-04-29 09:29:02 +02:00
os2 replaced many uses of libc calls with SDL_ counterparts in os2 sources. 2021-10-04 23:00:28 +03:00
paudio Updated copyright for 2021 2021-01-02 10:25:38 -08:00
pipewire Add SDL_HINT_APP_NAME and DBUS inhibition hint 2021-08-30 09:15:11 -04:00
psp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
pulseaudio Add SDL_HINT_APP_NAME and DBUS inhibition hint 2021-08-30 09:15:11 -04:00
qsa Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
sndio Updated copyright for 2021 2021-01-02 10:25:38 -08:00
sun Updated copyright for 2021 2021-01-02 10:25:38 -08:00
vita Set volume on device open 2021-04-24 14:13:09 -07:00
wasapi SDL_wasapi.c: fixed build against older SDKs. 2021-08-12 01:40:50 +03:00
winmm Fixed warnings building with Visual Studio 2021-05-25 10:34:04 -07:00
SDL_audio.c Restore previous behavior of empty SDL_AUDIODRIVER trying all drivers. 2021-08-30 05:00:51 +03:00
SDL_audio_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiocvt.c Improve portability of SDL_Convert51ToStereo_AVX 2021-08-12 16:04:35 -07:00
SDL_audiodev.c Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07:00
SDL_audiodev_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiotypecvt.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_mixer.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_sysaudio.h AAudio: add bootstrap in SDL_audio.c 2021-04-15 21:00:00 +02:00
SDL_wave.c Fix format string warnings for width-based integers 2021-02-11 19:41:41 -08:00
SDL_wave.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00