Hi all, as the title says if im hosting a vst what’s the correct way to change its layout from stereo to Mono or viceversa? I tried to do it for example to set Mono to Mono using:
where vstInstance is obviously the pluginInstance, with some plugins works well, others work with a big lag between the change and some crashes, so i guess im doing it wrong considering that the same plugins hosted in the DAW when i set the track from Stereo to Mono and viceversa the change is smooth.
Thx in advance
Thx for answering, the boolean return true and the number of channels change correctly, so i assume it’s something else that crash the plugin and get triggered during the change of the channels, i’ll debug a bit more, so anyway that’s the correct way to do it in case the plugin support it and return true?
since the instance is added as a Node in the graph, that should be it right? Even tho i suspect that i call the funcion to sync the channels also in the moment that the plugin is instantiated, and if after that, prepareToPlay doesn’t get triggered there is no call to the graph->prepareToPlay, thx for pointing that