Const OwnedArray<AudioProcessorParameter>& params = processor->getParameters()


Help!
can anyone tell me how to fix it?
I am a beginer at AudioProgramming.
thanks~~

Looking at the documentation the return type of getParameters is actually const Array<AudioProcessorParameter*>& and not const OwnedArray<AudioProcessorParameter>&.

So this assignment will not work. I’d advice you to stick to the almost always auto paradigm which means use auto where possible and let the compiler figure out the right type. So simply write

auto& params processor->getParameters();

2 Likes

Cool!Thank u,Dude,I wish u have a Good Day!!it works!