Пример #1
0
 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]);
     }
 }
Пример #2
0
 /// <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);
     }
 }