diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-05 12:35:10 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-05 14:15:02 -0400 |
commit | 4c7e5dbc74981dfe1c1d277a633cb2cce0d6036b (patch) | |
tree | 2acece91467a6dcdaa95e159993a181b359914ae /libs/ardour/utils.cc | |
parent | 1b71e4db2c71dac551b0b88e98a6fc2f533723a7 (diff) |
move away from "sync source" concepts
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r-- | libs/ardour/utils.cc | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 6a59d1b79b..dd893f399d 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -444,62 +444,6 @@ ARDOUR::edit_mode_to_string (EditMode mode) } } -SyncSource -ARDOUR::string_to_sync_source (string str) -{ - if (str == _("MIDI Timecode") || str == _("MTC")) { - return MTC; - } - - if (str == _("MIDI Clock")) { - return MIDIClock; - } - - if (str == _("JACK")) { - return Engine; - } - - if (str == _("LTC")) { - return LTC; - } - - fatal << string_compose (_("programming error: unknown sync source string \"%1\""), str) << endmsg; - abort(); /*NOTREACHED*/ - return Engine; -} - -/** @param sh Return a short version of the string */ -const char* -ARDOUR::sync_source_to_string (SyncSource src, bool sh) -{ - switch (src) { - case Engine: - /* no other backends offer sync for now ... deal with this if we - * ever have to. - */ - return S_("SyncSource|JACK"); - - case MTC: - if (sh) { - return S_("SyncSource|MTC"); - } else { - return _("MIDI Timecode"); - } - - case MIDIClock: - if (sh) { - return S_("SyncSource|M-Clk"); - } else { - return _("MIDI Clock"); - } - - case LTC: - return S_("SyncSource|LTC"); - } - /* GRRRR .... stupid, stupid gcc - you can't get here from there, all enum values are handled */ - return S_("SyncSource|JACK"); -} - float ARDOUR::meter_falloff_to_float (MeterFalloff falloff) { |