SDL/src/audio/coreaudio
Ryan C. Gordon e7ab581d79
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.
2022-10-19 09:14:16 -04:00
..
SDL_coreaudio.h coreaudio: Remove redundant variable. 2022-09-28 09:27:45 -04:00
SDL_coreaudio.m coreaudio: Dispose of AudioQueue before waiting on the thread. 2022-10-19 09:14:16 -04:00