From 400e6f440eaa55c634de0242e3a7fbf00a6a50bd Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 8 Jan 2010 15:58:47 +0100 Subject: [PATCH] aplay: Dump PCM state on xrun when verbose mode is active Signed-off-by: Jaroslav Kysela --- aplay/aplay.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.1