// process a single audio channel private void Process(Dsp.Delay delay, VstAudioBuffer input, VstAudioBuffer output) { for (int i = 0; i < input.SampleCount; i++) { output[i] = delay.ProcessSample(input[i]); } }
/// <summary> /// Default constructor. /// </summary> public AudioProcessor(PluginParameters parameters) : base(AudioInputCount, AudioOutputCount, InitialTailSize, noSoundInStop: false) { Throw.IfArgumentIsNull(parameters, nameof(parameters)); // one set of parameters is shared for both channels. Left = new Dsp.Delay(parameters.DelayParameters); Right = new Dsp.Delay(parameters.DelayParameters); }