private void VstPluginPersistence_PluginDeserialized(MssComponentHub deserializedMssHub) { this.MssHub = deserializedMssHub; this.MidiHandler.OnRelayInstancesReplaced(); this.AudioHandler.OnDeserialized(); this.vstParameters.OnMssParametersInstanceReplaced(); this.VstPluginPersistence.OnMssProgramMgrInstanceReplaced(); this.PluginPrograms.OnMssProgramMgrInstanceReplaced(); this.PluginEditor.OnDeserialized(); }
public void ProcessIdle() { // keep your processing short! MssComponentHub mssHub = this.getMssHub(); if (mssHub != null) { IHostInfoInputPort hostInputPort = mssHub.HostInfoInputPort; if (hostInputPort != null) { hostInputPort.TriggerIdleProcessing(); } } }
/// <summary> /// Initializes the one an only instance of the Plugin root object. /// </summary> public Plugin() : base(PluginName, new VstProductInfo(ProductName, VendorName, PluginVersion), VstPluginCategory.Effect, VstPluginCapabilities.ReceiveTimeInfo, // initial delay: number of samples your plugin lags behind. 0, UniquePluginId) { this.MssHub = new MssComponentHub(); this.MssHub.Init(); this.vstParameters = new VstParameters(); this.vstParameters.Init(() => this.MssHub.MssParameters, this.PluginPrograms); this.Opened += new System.EventHandler(Plugin_Opened); }