/// <summary> /// Creates a default instance and reuses that for all threads. /// </summary> /// <param name="instance">A reference to the default instance or null.</param> /// <returns>Returns the default instance.</returns> protected override IVstPluginAudioProcessor CreateAudioProcessor(IVstPluginAudioProcessor instance) { if (instance == null) { return(AudioProcessor = new AudioProcessor(this)); } return(base.CreateAudioProcessor(instance)); }
/// <summary> /// Creates a default instance and reuses that for all threads. /// </summary> /// <param name="instance">A reference to the default instance or null.</param> /// <returns>Returns the default instance.</returns> protected override IVstMidiProcessor CreateMidiProcessor(IVstMidiProcessor instance) { if (instance == null) { MidiProcessor = new MidiProcessor(this); if (AudioProcessor != null) { AudioProcessor.SetUp(); } return(MidiProcessor); } return(base.CreateMidiProcessor(instance)); }