VST Wrapper Change Request


#1

Hi Jues,

I have a very simple request for the VST wrapper.  It looks like when the code asks for a string it truncates it without giving the plug-in a chance to do the truncation intelligently.  This can easily be solved by passing in the max string length to the appropriate filter get functions. 

For example,

filter->getParameterName (index).copyToUTF8 (text, 16); // length should technically be kVstMaxParamStrLen, which is 8, but hosts will normally allow a bit more.

Would become:

filter->getParameterName (index, 16).copyToUTF8 (text, 16); // length should technically be kVstMaxParamStrLen, which is 8, but hosts will normally allow a bit more.

It looks like this change is fully backward compatible with existing code, even if it doesn't do inteligent truncation.

Thanks


#2

 no, nothing, post deleted.. :) I misreaded your post. sorry


#3

Good idea, thanks! I've changed that now. The length was actually a recent thing, added for AAX, and just needed back-porting for VST.


#4

Cool, thanks.