call snd_pcm_prepare after snd_pcm_drop in stop_audio

This commit is contained in:
William Hubbs 2009-06-30 15:54:52 -05:00
commit 82490a98d2

1
alsa.c
View file

@ -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();
}