I have a situation where I would like to be able to programmatically send a string to a VST that I’ve built and that I’m hosting in my app, but I never seem to receive anything inside of the VST. Here’s my shotgun approach trying anything I can think of after loading the plugin:
String test = "test";
m_poTrack->trackPlugins.back()->pluginInstance->setCurrentProgram(1);
m_poTrack->trackPlugins.back()->pluginInstance->changeProgramName(1, "Test test");
m_poTrack->trackPlugins.back()->pluginInstance->setCurrentProgramStateInformation(test.getCharPointer(), test.length());
In the plugin, I’ve overridden each of these methods, but for some reason it seems as if the base processor methods are being called instead of the overriden ones. I’ve attached a debugger and I can see that the plugin is being created and instantiated correctly, but none of these commands are sending anything in.
Is there some flag that I’m missing or something obvious that I’m forgetting to do? Or maybe another way to send a string to the plugin, preferably without IPC?