ncblair / NTHN_TEMPLATE_PLUGIN

a starting point for real-time safe JUCE plugins
MIT License
75 stars 2 forks source link

stringFromValue function in AudioParameterFloat constructor incompatible with AudioUnit #5

Open KevinToodlepoot opened 3 months ago

KevinToodlepoot commented 3 months ago

AudioUnit (and AAX/RTAS maybe?) won't pass in a "maximumStringLength" value when stringFromValue() is called, resulting in the function returning an empty string.

The solution I have used at the moment is to just delete the .substring() call from the return statement, and to not use the maximumStringLength variable at all.

ncblair commented 3 months ago

woah thanks good to know. I'll push a fix.

KevinToodlepoot commented 3 months ago

No problem! Love the template!