From 841c40d7ba21df9d90bfb0fa4e5c2dacdf7176f1 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 14 Jun 2013 10:52:00 +0100 Subject: [PATCH] AAX: registering all parameters, not just automatable ones. --- .../AAX/juce_AAX_Wrapper.cpp | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp b/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp index 95b2dc9ce6..a51ac6788d 100644 --- a/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp @@ -728,20 +728,17 @@ struct AAXClasses for (int parameterIndex = 0; parameterIndex < numParameters; ++parameterIndex) { - if (audioProcessor.isParameterAutomatable (parameterIndex)) - { - AAX_IParameter* parameter - = new AAX_CParameter (IndexAsParamID (parameterIndex), - audioProcessor.getParameterName (parameterIndex).toRawUTF8(), - audioProcessor.getParameter (parameterIndex), - AAX_CLinearTaperDelegate(), - AAX_CNumberDisplayDelegate(), - true); - - parameter->SetNumberOfSteps (0x7fffffff); - parameter->SetType (AAX_eParameterType_Continuous); - mParameterManager.AddParameter (parameter); - } + AAX_IParameter* parameter + = new AAX_CParameter (IndexAsParamID (parameterIndex), + audioProcessor.getParameterName (parameterIndex).toRawUTF8(), + audioProcessor.getParameter (parameterIndex), + AAX_CLinearTaperDelegate(), + AAX_CNumberDisplayDelegate(), + audioProcessor.isParameterAutomatable (parameterIndex)); + + parameter->SetNumberOfSteps (0x7fffffff); + parameter->SetType (AAX_eParameterType_Continuous); + mParameterManager.AddParameter (parameter); } }