summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2019-06-16 13:50:40 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2019-06-16 13:50:40 +0000
commit8ba4bc7732f4f9ae0040a259d293e2f59bec4710 (patch)
tree4cfb6917817c13834fedb37cb56916ac5b724a11 /usr.bin
parent03c865999c49eafd8afd2a270995ec825b1bc14b (diff)
Ignore the frame cents component in MMC relocate message.
As MTC requires new position to be transmitted with one frame precision and then to advance in quarter-frame steps, its not necessary to pollute out mtc position pointer with a frame cents information, care about rounding errors and so on.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sndiod/dev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 20f5fa66172..0a7ad257ebd 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.47 2018/06/26 07:49:44 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.48 2019/06/16 13:50:39 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -473,8 +473,7 @@ dev_midi_omsg(void *arg, unsigned char *msg, int len)
(x->u.loc.hr & 0x1f) * 3600 * MTC_SEC +
x->u.loc.min * 60 * MTC_SEC +
x->u.loc.sec * MTC_SEC +
- x->u.loc.fr * (MTC_SEC / fps) +
- x->u.loc.cent * (MTC_SEC / 100 / fps));
+ x->u.loc.fr * (MTC_SEC / fps));
break;
}
break;