From 82490a98d253d5201f93f309289346fff5169abc Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 30 Jun 2009 15:54:52 -0500 Subject: [PATCH] call snd_pcm_prepare after snd_pcm_drop in stop_audio --- alsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/alsa.c b/alsa.c index 96261fe..adf7039 100644 --- a/alsa.c +++ b/alsa.c @@ -178,6 +178,7 @@ void stop_audio(void) stop_requested = 1; if(snd_pcm_drop(handle) < 0) fprintf(stderr, "Negative return from snd_pcm_drop!\n"); + snd_pcm_prepare(handle); unlock_audio_mutex(); }