Mercurial > audlegacy-plugins
changeset 3200:8da9787de69d
alsa-ng: More paranoid debugging.
author | John Lindgren <john.lindgren@tds.net> |
---|---|
date | Tue, 11 Aug 2009 10:34:26 -0400 |
parents | 263c7d983100 |
children | abe1b3195d6b |
files | src/alsa-ng/alsa-core.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alsa-ng/alsa-core.c Thu Jul 23 14:26:10 2009 -0400 +++ b/src/alsa-ng/alsa-core.c Tue Aug 11 10:34:26 2009 -0400 @@ -222,10 +222,14 @@ else { gint err = snd_pcm_recover(pcm_handle, wr_frames, 1); + + _DEBUG ("snd_pcm_writei error: %s", snd_strerror (wr_frames)); + if (err < 0) - _ERROR("(write) snd_pcm_recover: %s", snd_strerror(err)); - - return; + { + _ERROR ("snd_pcm_recover error: %s", snd_strerror (err)); + return; + } } } }