public void Connect() { Patch vco = new Patch() { Id = 1, Code = "vco", Values = new SortedList <string, float>() }; Patch dac = new Patch() { Id = 2, Code = "dac", Values = new SortedList <string, float>() }; Connection connection = new Connection() { Id = 3, SourcePatch = 1, SourceOutlet = 0, TargetPatch = 2, TargetInlet = 1 }; processor.CreatePatch(vco); processor.CreatePatch(dac); processor.Connect(connection); TestConnection(messaging.Messages.Count - 5, 3, 2, 0, 0, 1, 1); }
public Connection Connect(int sourcePatch, int sourceOutlet, int targetPatch, int targetInlet) { Connection connection = patchGraphManager.Connect(sourcePatch, sourceOutlet, targetPatch, targetInlet); processor.Connect(connection); return(connection); }
public bool Connect(Ear ear) { return((ear == Ear.Left) ? _leftHearinAid.Connect() : _righttHearinAid.Connect()); }