ncblair / NTHN_TEMPLATE_PLUGIN

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

stringFromValue function in AudioParameterFloat constructor incompatible with AudioUnit #5

Open KevinToodlepoot opened 8 months ago

KevinToodlepoot commented 8 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 8 months ago

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

KevinToodlepoot commented 8 months ago

No problem! Love the template!