From: Jaroslav Kysela Date: Fri, 8 Jan 2010 14:58:47 +0000 (+0100) Subject: aplay: Dump PCM state on xrun when verbose mode is active X-Git-Tag: v1.0.23~15 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=400e6f440eaa55c634de0242e3a7fbf00a6a50bd;p=alsa-utils.git aplay: Dump PCM state on xrun when verbose mode is active Signed-off-by: Jaroslav Kysela --- 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