AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
I'm writing my first (instrument) plugin using VST3 SDK, in C++ in Visual Studio 2022 on Windows. I'm having real trouble loading a saved preset. I'm using the supplied TestHost for testing. On loading a preset, it appears to call the Processor's method SetState(IBStream* state) and then the Controller's method SetState(IBStream* state). The problem I have is that while in the Controller::setState method I have no problem accessing the preset data from the variable state something like this-Code: Select all (#)
IBStreamer streamer(state, kLittleEndian);
float testVal;
if (streamer.readFloat(testVal) == false)
{
return kResultFalse; //Read failed?
}
return kResultOk;
I thought it might be the VST TestHost not working correctly but it does the same in Cakewalk. I'm completely baffled. Can anyone help?
