summaryrefslogtreecommitdiff
path: root/libs/midi++2/mtc.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-02-23 13:40:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-02-23 13:40:09 +0000
commit3ecf8cd00838293b79832b6124312c0b294fdc0f (patch)
tree140c25457bfb2ccfeaec4c313a8796e99f606f91 /libs/midi++2/mtc.cc
parentdfa996f8be7ca8dfbcabed81379390a3825e48f0 (diff)
possible fix for MTC slaving
git-svn-id: svn://localhost/ardour2/trunk@1498 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/mtc.cc')
-rw-r--r--libs/midi++2/mtc.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/midi++2/mtc.cc b/libs/midi++2/mtc.cc
index 19fdb1fabd..1da9ae6e36 100644
--- a/libs/midi++2/mtc.cc
+++ b/libs/midi++2/mtc.cc
@@ -36,7 +36,7 @@ using namespace MIDI;
bool
Parser::possible_mtc (byte *sysex_buf, size_t msglen)
{
- byte fake_mtc_time[4];
+ byte fake_mtc_time[5];
if (msglen != 10 || sysex_buf[0] != 0xf0 || sysex_buf[1] != 0x7f || sysex_buf[3] != 0x01 || sysex_buf[4] != 0x01) {
return false;
@@ -50,7 +50,9 @@ Parser::possible_mtc (byte *sysex_buf, size_t msglen)
fake_mtc_time[3] = (sysex_buf[5] & 0x1f); // hours
_mtc_fps = MTC_FPS ((sysex_buf[5] & 0x60) >> 5); // fps
-
+
+ fake_mtc_time[4] = (byte) _mtc_fps;
+
/* wait for first quarter frame, which could indicate forwards
or backwards ...
*/