From 8c9c0836a31058f4854071d8a521077293fe091c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 7 Nov 2012 23:02:11 +0000 Subject: 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 --- libs/ardour/ardour/rc_configuration_vars.h | 1 + libs/ardour/ltc_slave.cc | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h index ea44c60682..f046ec428e 100644 --- a/libs/ardour/ardour/rc_configuration_vars.h +++ b/libs/ardour/ardour/rc_configuration_vars.h @@ -50,6 +50,7 @@ CONFIG_VARIABLE (bool, first_midi_bank_is_zero, "diplay-first-midi-bank-as-zero" CONFIG_VARIABLE (int, mtc_qf_speed_tolerance, "mtc-qf-speed-tolerance", 5) CONFIG_VARIABLE (bool, timecode_sync_frame_rate, "timecode-sync-frame-rate", true) CONFIG_VARIABLE (bool, timecode_source_is_synced, "timecode-source-is-synced", true) +CONFIG_VARIABLE (bool, timecode_source_2997, "timecode-source-2997", false) CONFIG_VARIABLE (SyncSource, sync_source, "sync-source", JACK) CONFIG_VARIABLE (std::string, ltc_source_port, "ltc-source-port", "system:capture_1") CONFIG_VARIABLE (bool, send_ltc, "send-ltc", false) 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) { -- cgit v1.2.3