Please show the code you’re using to construct the AudioParameterChoice. At a guess you probably did something like { "On", "Off" } for your choices parameter and you’ll solve it by putting juce::StringArray { "On", "Off" } there instead. My assumption is that the compiler can’t implicitly decide what type you’re giving, so explicitly stating it would solve the issue. Complete guesswork though without your code.
Seems to be correct, basically the same as I have used AudioParameterChoice myself without issue before, so I’m not sure where your error is coming from.
Reason: cannot convert from ‘_Ty’ to ‘const juce::StringArray’
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
I checked the error and this code appeared. It was in the External Dependencies/memory
I haven’t gotten anything about why this conversion failed. Is it related with my coding setting? Do I have to install other extension packs or something?
I thought I had this error for a while, turns out I’d somehow ._. managed to switch a different line of code which was adding int parameters to use the AudioParameterChoice type, so the error was coming from this line and not where I was trying to actually add the choices.