This project has moved and is read-only. For the latest updates, please go here.

Plug-in Editor VST Host in .Net doesn't work properly with some plug-ins

Topics: Host Processing, Plugin Parameters
Jul 6, 2014 at 11:24 PM
I opened Sonalksis SV-719 Mono Gate editor in our example, but, when I changed any parameter, the UI didn't update.
When I open this plug-in in vsthostx86, all program works correctly.
Please, help me to solve this problem.
Jul 7, 2014 at 6:22 AM
The Host sample is not intended as a working host. Is is just a demonstration of how some of the VST.NET host API works.

To fix the problem you have, you should probably add idle processing to the editor - this is where most plugins update their UI...

Hope it helps,
Marc
Jul 7, 2014 at 5:34 PM
Where can I read about this? May you give some examples?
Best Regards, Yan Alexeenko.
Jul 7, 2014 at 5:58 PM
yanusa3 wrote:
Where can I read about this? May you give some examples?
http://vstnet.codeplex.com/discussions?searchText=processidle
Jul 7, 2014 at 7:17 PM
I resolve this issue, the code is:

private void HostCmdStub_PluginCalled(object sender, PluginCalledEventArgs e)
{
...
Plugin.PluginCommandStub.EditorIdle();
...
}

and

public void ProcessAudio(float sampleRate, double[] inData, double[] outData)
{
...
Plugin.PluginCommandStub.ProcessReplacing(inputBuffers, outputBuffers);
if (EditorOpen)
{
    Plugin.PluginCommandStub.EditorIdle();
}
...
}
Jul 7, 2014 at 7:53 PM
Just a sidenote, some plugins hook the mouse drag event in a way that my WPF GUI thread is hanged until the user completes the drag operation. The typical scenario involves the user changing a knob value with a mouse drag operation, the GUI refresh only when the drag is complete. I don't think this issue is easy to correct as it might have something to do with the wobbly event handling of the WindowsFormHost WPF controls.