public override void Run() { Channel channel = System.PlaySound(sound, mainGroup, true); var channelHead = channel.GetDSP(ChannelControlDSPIndex.DspHead); DspConnection reverbConnection = reverbUnit.AddInput(channelHead, DSPConnectionType.Send); channel.Paused = false; do { OnUpdate(); System.Update(); reverbConnection.Mix = wetVolume; mainGroup.Volume = dryVolume; DrawText("=================================================="); DrawText("Convolution Example."); DrawText("Copyright (c) Firelight Technologies 2004-2018."); DrawText("=================================================="); DrawText("Press Up and Down arrows to change dry mix"); DrawText("Press Left and Right Arrows to change wet mix"); DrawText($"Wet mix: {wetVolume}, Dry mix: {dryVolume}"); DrawText("Press Esc to Quit."); Sleep(50); }while (!ShouldEndExample); }
public AddChannelGroupEventArgs(ChannelGroup group, DspConnection connection) { ChannelGroup = group; Connection = connection; }
public DspDisconnectEventArgs(Dsp dsp, DspConnection connection) { DspInstance = dsp; Connection = connection; }
public DspInputEventArgs(DspConnection connection, DspConnectionType type) { Connection = connection; ConnectionType = type; }