SDL2/src/audio
Ryan C. Gordon 266ca2c933 coreaudio: Dispose of AudioQueue before waiting on the thread.
Otherwise the thread might block for a long time (more than 10 seconds!).
It's not clear to me why this happens, or why its safe to do this with a
resource that's still in use, but we have, until recently, always
disposed of the AudioQueue first, so changing back is probably okay.

Also changed the disposal to allow in-flight buffers to reach hardware;
otherwise you lose the last little bit of audio that's already been queued
but not played, which you can hear clearly in the loopwave test program.

Fixes #6377.
(cherry picked from commit e7ab581d79)
2022-10-19 20:29:24 +03:00
..
aaudio audio/aaudio, audio/openslES: fix -Wdeclaration-after-statement errors 2022-07-23 14:56:04 +03:00
alsa audio: Handle non-power-of-two spec.samples when unsupported 2022-07-17 10:36:15 -04:00
android drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
arts drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
coreaudio coreaudio: Dispose of AudioQueue before waiting on the thread. 2022-10-19 20:29:24 +03:00
directsound audio: Handle non-power-of-two spec.samples when unsupported 2022-07-17 10:36:15 -04:00
disk audio: Handle non-power-of-two spec.samples when unsupported 2022-07-17 10:36:15 -04:00
dsp audio: Set error message on dsp init failure. 2022-03-20 10:31:19 -07:00
dummy drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
emscripten audio: Fix locking in backends that manage their own callback threads. 2022-05-20 21:08:29 -04:00
esd drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
fusionsound drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
haiku audio: Fix locking in backends that manage their own callback threads. 2022-05-20 21:08:29 -04:00
jack drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
nacl audio: Fix locking in backends that manage their own callback threads. 2022-05-20 21:08:29 -04:00
nas drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
netbsd Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
openslES audio/aaudio, audio/openslES: fix -Wdeclaration-after-statement errors 2022-07-23 14:56:04 +03:00
os2 drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
paudio drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
pipewire audio, pipewire: fix signatures of pw_get_library_version and pw_init. 2022-07-20 07:01:10 +03:00
ps2 Decrease audio thread priority when created 2022-08-14 08:13:17 -04:00
psp drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
pulseaudio audio: Handle non-power-of-two spec.samples when unsupported 2022-07-17 10:36:15 -04:00
qsa Update SDL_qsa_audio.c 2022-07-08 12:15:00 +03:00
sndio drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
sun drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
vita Vita: add audio capture support 2022-03-29 14:12:37 -07:00
wasapi Fix use after free when removing Windows audio device 2022-08-02 10:24:11 -04:00
winmm drop handle parameter of OpenDevice 2022-01-28 20:40:19 -05:00
SDL_audio.c audio: Report SDL_AUDIODEVICEREMOVED for unopened devices. 2022-07-26 12:40:47 -04:00
SDL_audio_c.h audio: Turn off DEBUG_CONFIG logging again. 2022-07-20 18:41:53 -04:00
SDL_audio_channel_converters.h audio: Fixed dst pointer on channel conversions that grow in-place. 2022-07-20 18:41:53 -04:00
SDL_audio_resampler_filter.h audio: Make pregenerated resampler kaiser filter more precise. 2022-04-26 13:32:42 -04:00
SDL_audiocvt.c audio: Remove 5.1->X SIMD converters, add SSE mono->stereo. 2022-07-20 18:41:53 -04:00
SDL_audiodev.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_audiodev_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_audiotypecvt.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_mixer.c revert 'Changed to use 0xFE instead of 0xFF for better sound quality.' 2022-01-28 20:40:19 -05:00
SDL_sysaudio.h audio: Handle non-power-of-two spec.samples when unsupported 2022-07-17 10:36:15 -04:00
SDL_wave.c static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
SDL_wave.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00