# HG changeset patch # User Ryan C. Gordon # Date 1161072291 0 # Node ID ee5dfa7f799379284ca18e5e1cce35466816cd4f # Parent 332a59e39ce183bbac5397303b87f6971a3626cc ALSA's availability test was wrong in multi-device land. If the ALSA libraries are available, we should use them and report zero available devices instead. diff -r 332a59e39ce1 -r ee5dfa7f7993 src/audio/alsa/SDL_alsa_audio.c --- a/src/audio/alsa/SDL_alsa_audio.c Tue Oct 17 06:45:17 2006 +0000 +++ b/src/audio/alsa/SDL_alsa_audio.c Tue Oct 17 08:04:51 2006 +0000 @@ -221,17 +221,9 @@ ALSA_Available(void) { int available = 0; - int status; - snd_pcm_t *handle; if (LoadALSALibrary() >= 0) { - int status = ALSA_snd_pcm_open(&handle, get_audio_device(2), - SND_PCM_STREAM_PLAYBACK, - SND_PCM_NONBLOCK); - if (status >= 0) { - available = 1; - ALSA_snd_pcm_close(handle); - } + available = 1; UnloadALSALibrary(); } return (available);