mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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
This commit is contained in:
parent
eb0faf3ec3
commit
4336bb25d7
3 changed files with 10 additions and 5 deletions
|
|
@ -331,7 +331,7 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
|
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
|
||||||
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
|
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
|
||||||
} else {
|
} else {
|
||||||
sync_button.set_label (sync_source_to_string (_session->config.get_sync_source()));
|
sync_button.set_label (sync_source_to_string (_session->config.get_sync_source(), true));
|
||||||
/* XXX need to make auto-play is off as well as insensitive */
|
/* XXX need to make auto-play is off as well as insensitive */
|
||||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
|
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
|
||||||
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
|
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ bool path_is_paired (std::string path, std::string& pair_base);
|
||||||
|
|
||||||
void compute_equal_power_fades (ARDOUR::framecnt_t nframes, float* in, float* out);
|
void compute_equal_power_fades (ARDOUR::framecnt_t nframes, float* in, float* out);
|
||||||
|
|
||||||
const char* sync_source_to_string (ARDOUR::SyncSource src);
|
const char* sync_source_to_string (ARDOUR::SyncSource src, bool sh = false);
|
||||||
ARDOUR::SyncSource string_to_sync_source (std::string str);
|
ARDOUR::SyncSource string_to_sync_source (std::string str);
|
||||||
|
|
||||||
const char* edit_mode_to_string (ARDOUR::EditMode);
|
const char* edit_mode_to_string (ARDOUR::EditMode);
|
||||||
|
|
|
||||||
|
|
@ -400,7 +400,7 @@ edit_mode_to_string (EditMode mode)
|
||||||
SyncSource
|
SyncSource
|
||||||
string_to_sync_source (string str)
|
string_to_sync_source (string str)
|
||||||
{
|
{
|
||||||
if (str == _("MIDI Timecode")) {
|
if (str == _("MIDI Timecode") || str == _("MTC")) {
|
||||||
return MTC;
|
return MTC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -417,15 +417,20 @@ string_to_sync_source (string str)
|
||||||
return JACK;
|
return JACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @param sh Return a short version of the string */
|
||||||
const char*
|
const char*
|
||||||
sync_source_to_string (SyncSource src)
|
sync_source_to_string (SyncSource src, bool sh)
|
||||||
{
|
{
|
||||||
switch (src) {
|
switch (src) {
|
||||||
case JACK:
|
case JACK:
|
||||||
return _("JACK");
|
return _("JACK");
|
||||||
|
|
||||||
case MTC:
|
case MTC:
|
||||||
return _("MIDI Timecode");
|
if (sh) {
|
||||||
|
return _("MTC");
|
||||||
|
} else {
|
||||||
|
return _("MIDI Timecode");
|
||||||
|
}
|
||||||
|
|
||||||
case MIDIClock:
|
case MIDIClock:
|
||||||
return _("MIDI Clock");
|
return _("MIDI Clock");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue