mirror of https://github.com/ericonr/sndio.git
Ignore sub-frames component in MMC relocate message.
This commit is contained in:
parent
e6587d3b97
commit
74abe4dcc7
|
@ -23,7 +23,8 @@
|
|||
#define MIDI_BUFSZ 3125 /* 1 second at 31.25kbit/s */
|
||||
|
||||
/*
|
||||
* units used for MTC clock.
|
||||
* units used for MTC clock. Must allow a quarter of frame to be
|
||||
* represented at any of the standard 24, 25, or 30 fps.
|
||||
*/
|
||||
#define MTC_SEC 2400 /* 1 second is 2400 ticks */
|
||||
|
||||
|
|
|
@ -474,8 +474,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;
|
||||
|
|
Loading…
Reference in New Issue