Replace snd_pcm_drop with snd_pcm_drain.

This commit is contained in:
Mike Brady
2018-05-06 17:25:43 +01:00
parent a5f7cd89cf
commit 709ffa5915
+5 -2
View File
@@ -892,8 +892,11 @@ static void flush(void) {
int derr;
do_mute(1);
if (alsa_handle) {
if ((derr = snd_pcm_drop(alsa_handle)))
debug(1, "Error %d (\"%s\") draining the output device.", derr, snd_strerror(derr));
debug(1,"Start drain.");
if ((derr = snd_pcm_drain(alsa_handle)))
debug(1, "Error %d (\"%s\") draining output device.", derr, snd_strerror(derr));
debug(1,"Finish drain.");
if ((derr = snd_pcm_hw_free(alsa_handle)))
debug(1, "Error %d (\"%s\") freeing the output device hardware.", derr, snd_strerror(derr));