MTC slave: 2997fudge option
authorRobin Gareus <robin@gareus.org>
Fri, 9 Nov 2012 07:47:57 +0000 (07:47 +0000)
committerRobin Gareus <robin@gareus.org>
Fri, 9 Nov 2012 07:47:57 +0000 (07:47 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13400 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/mtc_slave.cc

index f637d678a2eea93a83401b389cffcc948c92a4bf..947de39486ab0d8ed88447444746f19c1ca77986 100644 (file)
@@ -313,9 +313,14 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, framepos_t now)
                can_notify_on_unknown_rate = true;
                break;
        case MTC_30_FPS_DROP:
-               timecode.rate = (30000.0/1001.0);
+               if (Config->get_timecode_source_2997()) {
+                       tc_format = Timecode::timecode_2997000drop;
+                       timecode.rate = (29970.0/1000.0);
+               } else {
+                       tc_format = timecode_2997drop;
+                       timecode.rate = (30000.0/1001.0);
+               }
                timecode.drop = true;
-               tc_format = timecode_2997drop;
                can_notify_on_unknown_rate = true;
                break;
        case MTC_30_FPS: