summaryrefslogtreecommitdiff
path: root/libs/ardour/utils.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-23 00:26:54 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-23 00:26:54 +0000
commit4336bb25d739cd007811ccd0298a15acc5e20787 (patch)
treebdafaa86e9b8e61d7a95ff9ac6655535ae31558e /libs/ardour/utils.cc
parenteb0faf3ec31a2d0858be8ec7f81750e752ba0be9 (diff)
Use MTC instead of MIDI Timecode as the string for the external sync button. Fixes #3621.
git-svn-id: svn://localhost/ardour2/branches/3.0@8332 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r--libs/ardour/utils.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 64e06b6f12..f9d16a47b4 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -400,7 +400,7 @@ edit_mode_to_string (EditMode mode)
SyncSource
string_to_sync_source (string str)
{
- if (str == _("MIDI Timecode")) {
+ if (str == _("MIDI Timecode") || str == _("MTC")) {
return MTC;
}
@@ -417,15 +417,20 @@ string_to_sync_source (string str)
return JACK;
}
+/** @param sh Return a short version of the string */
const char*
-sync_source_to_string (SyncSource src)
+sync_source_to_string (SyncSource src, bool sh)
{
switch (src) {
case JACK:
return _("JACK");
case MTC:
- return _("MIDI Timecode");
+ if (sh) {
+ return _("MTC");
+ } else {
+ return _("MIDI Timecode");
+ }
case MIDIClock:
return _("MIDI Clock");