summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/types.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-25 18:24:32 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-25 18:24:32 -0400
commitd6274d5c3e588ee0b66bf95551567a77b38b3619 (patch)
treef59125a871bba8040da3c95178ce4de8b69c5b81 /libs/ardour/ardour/types.h
parente43a8dac1ccfd7bb9766c9714eb0f47aca72283b (diff)
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".
Diffstat (limited to 'libs/ardour/ardour/types.h')
-rw-r--r--libs/ardour/ardour/types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h
index ca3f1acc19..526a71c58b 100644
--- a/libs/ardour/ardour/types.h
+++ b/libs/ardour/ardour/types.h
@@ -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