Hi I’m having problems with parameters. My IDEs (CLion or XCode) keep throwing up the error
Cannot initialize object parameter of type ‘juce::AudioProcessor’ with an expression of type ‘BinauralPanner_mscAudioProcessor’
when i try and add a parameter to my Processor constructor. Does anyone know what i might be missing?
Constructor
BinauralPanner_mscAudioProcessor::BinauralPanner_mscAudioProcessor()
#ifndef JucePlugin_PreferredChannelConfigurations
: AudioProcessor (BusesProperties()
#if ! JucePlugin_IsMidiEffect
#if ! JucePlugin_IsSynth
.withInput ("Input", AudioChannelSet::stereo(), true)
#endif
.withOutput ("Output", AudioChannelSet::stereo(), true)
#endif
)
#endif
{
decodes.add("Octahedron");
decodes.add("Square");
decodes.add("Icosahedron");
decodes.add("Dodecahedron");
addParameter(ISEnable = new AudioParameterBool ("ISEnable","ImageSourceEnable",true,"image source enable"));
addParameter(FVEnable = new AudioParameterBool("FVEnable","AmbiFreeverbEnable",true,"freeverb enable"));
addParameter(numReflections = new AudioParameterInt("numRefs","numReflections",0,15,0,"num reflects"));
addParameter(Array = new AudioParameterChoice("Decode Array","decode array",decodes,0));
addParameter(Ang = new AudioParameterFloat("Angle","Angle",0,360,0));
addParameter(Elev = new AudioParameterFloat("Elev","Elev",-90,90,0));
addParameter(roomsize = new AudioParameterFloat("RoomSize","RoomSize",0,1,0.5));
addParameter(Damp = new AudioParameterFloat("Damp","Damp",0,1,0.5));
addParameter(Scatter = new AudioParameterFloat("Scatter","Scatter",0,1,0.5));
addParameter(Distance = new AudioParameterFloat("Distance","Distance",0,1,0));
}
In Header
StringArray decodes;
AudioParameterBool* ISEnable;
AudioParameterBool* FVEnable;
AudioParameterInt* numReflections;
AudioParameterChoice* Array;
AudioParameterFloat* Ang;
AudioParameterFloat* Elev;
AudioParameterFloat* roomsize;
AudioParameterFloat* Damp;
AudioParameterFloat* Scatter;
AudioParameterFloat* Distance;
Thanks for any insight you can give