fix up enum mess caused by switching from JACK to Engine as the name for jack-related transport sync

This will allow older versions of Ardour to continue to startup when the user sync preference is "JACK",
because the string used by enum_2_string() will still be "JACK".

Versions of ardour3 from git after the enum change until this commit will leave ardour.rc unloaded by old
versions of Ardour ***if*** the user sync choice was "JACK".
This commit is contained in:
Paul Davis
2013-09-25 18:24:32 -04:00
parent e43a8dac1c
commit d6274d5c3e
2 changed files with 6 additions and 2 deletions

View File

@@ -489,8 +489,12 @@ namespace ARDOUR {
};
enum SyncSource {
Engine = 0,
/* These are "synonyms". It is important for JACK to be first
both here and in enums.cc, so that the string "JACK" is
correctly recognized in older session and preference files.
*/
JACK = 0,
Engine = 0,
MTC,
MIDIClock,
LTC

View File

@@ -335,8 +335,8 @@ setup_enum_writer ()
REGISTER (_PluginType);
REGISTER_ENUM (MTC);
REGISTER_ENUM (Engine);
REGISTER_ENUM (JACK);
REGISTER_ENUM (Engine);
REGISTER_ENUM (MIDIClock);
REGISTER_ENUM (LTC);
REGISTER (_SyncSource);