mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
aplay: Dump PCM state on xrun when verbose mode is active
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6b4fbdfd71
commit
400e6f440e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue