summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.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 /gtk2_ardour/rc_option_editor.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 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 9d0d24acfa..16c893e645 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -1087,6 +1087,18 @@ RCOptionEditor::RCOptionEditor ()
add_option (_("Transport"), _sync_genlock);
+ _sync_source_2997 = new BoolOption (
+ "timecode-source-2997",
+ _("Lock to 29.9700 fps instead of 30000/1001"),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::get_timecode_source_2997),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::set_timecode_source_2997)
+ );
+ Gtkmm2ext::UI::instance()->set_tip
+ (_sync_genlock->tip_widget(),
+ _("<b>When enabled</b> the external timecode source is assumed to use 29.97 fps instead of 30000/1001"));
+
+ add_option (_("Transport"), _sync_source_2997);
+
_ltc_port = new ComboStringOption (
"ltc-source-port",
_("LTC incoming port"),
@@ -1782,10 +1794,12 @@ RCOptionEditor::parameter_changed (string const & p)
case ARDOUR::LTC:
_sync_genlock->set_sensitive (true);
_sync_framerate->set_sensitive (true);
+ _sync_source_2997->set_sensitive (true);
break;
default:
_sync_genlock->set_sensitive (false);
_sync_framerate->set_sensitive (false);
+ _sync_source_2997->set_sensitive (false);
break;
}
#ifdef HAVE_LTC