unsafe void ConnectPorts(List <string> outlets, List <string> inlets) { for (int i = 0; i < Math.Min(outlets.Count, inlets.Count); i++) { PortApi.Connect(JackClient, outlets [i], inlets [i]); } }
/// <summary> /// Connect the specified outPort and inPort. /// </summary> /// <param name="outPort">Out port.</param> /// <param name="inPort">In port.</param> public bool Connect(PortReference outPort, PortReference inPort) { unsafe { return(PortApi.Connect(JackClient, outPort.FullName, inPort.FullName) == 0); } }