SDL/src/audio
Sam Lantinga bac61096d8 ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device
James Zipperer

The problem I was seeing was that the the ALSA hotplug thread would call SDL_RemoveAudioDevice, but my application code was not seeing an SDL_AUDIODEVICEREMOVED event to go along with it.   To fix it, I added some code into SDL_RemoveAudioDevice to call SDL_OpenedAudioDeviceDisconnected on the corresponding open audio device.  There didn't appear to be a way to cross reference the handle that SDL_RemoveAudioDevice gets and the SDL_AudioDevice pointer that SDL_OpenedAudioDeviceDisconnected needs, so I ended up adding a void *handle field to struct SDL_AudioDevice so that I could do the cross reference.

Is there some other way beside adding a void *handle field to the struct to get the proper information for SDL_OpenedAudioDeviceDisconnected?
2016-10-04 06:48:07 -07:00
..
alsa fix deadlock on close device 2016-10-04 06:46:46 -07:00
android audio: Renamed some internal driver symbols in various targets. 2016-08-11 22:22:09 -04:00
arts audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
bsd audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
coreaudio Mac: Fixed whitespace around function return type. 2016-09-21 23:06:49 +02:00
directsound directsound: Implemented audio capture support. 2016-08-10 16:00:16 -04:00
disk audio: Renamed some internal driver symbols in various targets. 2016-08-11 22:22:09 -04:00
dsp dsp: Implemented audio capture support. 2016-08-07 02:43:20 -04:00
dummy audio: Renamed some internal driver symbols in various targets. 2016-08-11 22:22:09 -04:00
emscripten emscripten: get even more aggressive about audio device closing. 2016-09-18 18:07:47 -04:00
esd audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
fusionsound audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
haiku Patched to compile on Haiku. 2016-08-28 18:24:44 -04:00
nacl nacl: Patched to compile. 2016-08-28 18:52:25 -04:00
nas nas: initial shot at audio capture support. Compiles, but not tested. 2016-08-05 04:23:32 -04:00
paudio audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
psp audio: Renamed some internal driver symbols in various targets. 2016-08-11 22:22:09 -04:00
pulseaudio audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
qsa audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice. 2016-08-05 02:04:48 -04:00
sndio audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
sun audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
winmm windows: directsound should also map audio device GUIDs to proper names. 2016-08-10 15:34:24 -04:00
xaudio2 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
SDL_audio.c ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device 2016-10-04 06:48:07 -07:00
SDL_audio_c.h audio: implemented higher level infrastructure for running capture devices. 2016-08-02 13:50:21 -04:00
SDL_audiocvt.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_audiodev.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_audiodev_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_audiotypecvt.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_mixer.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_sysaudio.h ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device 2016-10-04 06:48:07 -07:00
SDL_wave.c audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. 2016-08-05 01:59:06 -04:00
SDL_wave.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
sdlgenaudiocvt.pl Updated copyright to 2016 2016-01-02 10:10:34 -08:00