summaryrefslogtreecommitdiff
path: root/libs/ardour/ltc_slave.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2012-11-07 23:02:11 +0000
committerRobin Gareus <robin@gareus.org>2012-11-07 23:02:11 +0000
commit8c9c0836a31058f4854071d8a521077293fe091c (patch)
tree9feaed058392be03772b69826dc34d0ece1a9de3 /libs/ardour/ltc_slave.cc
parent0e0c15833eb1c2f06cc5e45aaeed37adae288287 (diff)
experimental option to support LTC 29.97000 fps generators.
also change 29.97ndf frame-rate to 30000/1001. git-svn-id: svn://localhost/ardour2/branches/3.0@13395 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ltc_slave.cc')
-rw-r--r--libs/ardour/ltc_slave.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ltc_slave.cc b/libs/ardour/ltc_slave.cc
index fb16c5e79a..28c6331628 100644
--- a/libs/ardour/ltc_slave.cc
+++ b/libs/ardour/ltc_slave.cc
@@ -231,6 +231,15 @@ LTC_Slave::detect_ltc_fps(int frameno, bool df)
/* poll and check session TC */
TimecodeFormat tc_format = apparent_timecode_format();
TimecodeFormat cur_timecode = session.config.get_timecode_format();
+
+ if (Config->get_timecode_source_2997() && tc_format == Timecode::timecode_2997drop) {
+ tc_format = Timecode::timecode_2997000drop;
+ }
+ else
+ if (Config->get_timecode_source_2997() && tc_format == Timecode::timecode_2997) {
+ tc_format = Timecode::timecode_2997000;
+ }
+
if (Config->get_timecode_sync_frame_rate()) {
/* enforce time-code */
if (!did_reset_tc_format) {