diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-01-08 15:58:47 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-01-08 15:58:47 +0100 |
commit | 400e6f440eaa55c634de0242e3a7fbf00a6a50bd (patch) | |
tree | e5e60198f0ed13509d655f5dee19dc5b79c6862d | |
parent | 6b4fbdfd717729568296845ab3eb0525290332d6 (diff) | |
download | alsa-utils-400e6f440eaa55c634de0242e3a7fbf00a6a50bd.tar.gz |
aplay: Dump PCM state on xrun when verbose mode is active
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | aplay/aplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c index 22a5fe0..e1f7c4d 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1176,6 +1176,8 @@ static void xrun(void) fprintf(stderr, _("%s!!! (at least %.3f ms long)\n"), stream == SND_PCM_STREAM_PLAYBACK ? _("underrun") : _("overrun"), diff.tv_sec * 1000 + diff.tv_nsec / 10000000.0); + if (verbose) + snd_pcm_dump(handle, log); #else fprintf(stderr, "%s !!!\n", _("underrun")); #endif |