mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AAX Client: Avoid overwriting bypass parameter value on state recall
This commit is contained in:
parent
555408be40
commit
cccb3d360a
1 changed files with 6 additions and 2 deletions
|
|
@ -822,11 +822,15 @@ namespace AAXClasses
|
|||
// * The preset is loaded in PT 10 using the AAX version.
|
||||
// * The session is then saved, and closed.
|
||||
// * The saved session is loaded, but acting as if the preset was never loaded.
|
||||
// IMPORTANT! If the plugin doesn't manage its own bypass parameter, don't try
|
||||
// to overwrite the bypass parameter value.
|
||||
auto numParameters = juceParameters.getNumParameters();
|
||||
|
||||
for (int i = 0; i < numParameters; ++i)
|
||||
if (auto paramID = getAAXParamIDFromJuceIndex(i))
|
||||
SetParameterNormalizedValue (paramID, juceParameters.getParamForIndex (i)->getValue());
|
||||
if (auto* juceParam = juceParameters.getParamForIndex (i))
|
||||
if (juceParam != ownedBypassParameter.get())
|
||||
if (auto paramID = getAAXParamIDFromJuceIndex (i))
|
||||
SetParameterNormalizedValue (paramID, juceParam->getValue());
|
||||
|
||||
return AAX_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue