# HG changeset patch # User Sam Lantinga # Date 1018856994 0 # Node ID 5868b0f832f2d345307a17e946c656333f53a901 # Parent a1e54d1ba16f11c4c535c6a7a3a8bd8d92db7a72 *** empty log message *** diff -r a1e54d1ba16f -r 5868b0f832f2 src/audio/alsa/SDL_alsa_audio.c --- a/src/audio/alsa/SDL_alsa_audio.c Mon Apr 15 07:47:35 2002 +0000 +++ b/src/audio/alsa/SDL_alsa_audio.c Mon Apr 15 07:49:54 2002 +0000 @@ -187,6 +187,7 @@ mixbuf = NULL; } if ( pcm_handle ) { + snd_pcm_drain(pcm_handle); snd_pcm_close(pcm_handle); pcm_handle = NULL; }