VST3: JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE broken

It seems commit #e05a15 broke JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE for the VST3 wrapper.
This can be easily seen with Studio One 4.5 and saving a project with version before this commit and prior to this commit (just make sure you have #define JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE 1 always on.

The fix is simple:

-
-            if (! forceLegacyParamIDs && param.isDiscrete())
+
+            #if ! JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE
+            if (! forceLegacyParamIDs && param.isDiscrete())
+            #endif

I’ve also logged it on ROLI’s github as a comment to the commit.

2 Likes

Thank you for reporting. It looks like that commit confused forceLegacyParamIDs and JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE. We’ll get that fixed.

2 Likes