make snd_pcm_recover silent when the debug level is 0, not the other way around, duh.

This commit is contained in:
Mike Brady
2019-06-17 10:04:23 +01:00
parent 65abca2562
commit a46c761aa6
+1 -1
View File
@@ -1623,7 +1623,7 @@ int do_play(void *buf, int samples) {
measurement_data_is_valid = 0;
if (ret == -EPIPE) { /* underrun */
debug(1, "alsa: underrun while writing %d samples to alsa device.", samples);
int tret = snd_pcm_recover(alsa_handle, ret, debuglev > 0 ? 1 : 0);
int tret = snd_pcm_recover(alsa_handle, ret, debuglev > 0 ? 0 : 1);
if (tret < 0) {
warn("alsa: can't recover from SND_PCM_STATE_XRUN: %s.", snd_strerror(tret));
}