mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
aplay: fix timespec to msec conversion
There is 1M nsec in a msec. Signed-off-by: Olivier Langlois <olivier@trillion01.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ef0e588c76
commit
360878f9c3
1 changed files with 1 additions and 1 deletions
|
@ -1509,7 +1509,7 @@ static void xrun(void)
|
||||||
timermsub(&now, &tstamp, &diff);
|
timermsub(&now, &tstamp, &diff);
|
||||||
fprintf(stderr, _("%s!!! (at least %.3f ms long)\n"),
|
fprintf(stderr, _("%s!!! (at least %.3f ms long)\n"),
|
||||||
stream == SND_PCM_STREAM_PLAYBACK ? _("underrun") : _("overrun"),
|
stream == SND_PCM_STREAM_PLAYBACK ? _("underrun") : _("overrun"),
|
||||||
diff.tv_sec * 1000 + diff.tv_nsec / 10000000.0);
|
diff.tv_sec * 1000 + diff.tv_nsec / 1000000.0);
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "%s !!!\n", _("underrun"));
|
fprintf(stderr, "%s !!!\n", _("underrun"));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue