public void CreateOutputConnectedPort() { var api = new AlsaMidiApi(); var output = api.CreateOutputConnectedPort(api.EnumerateAvailableOutputPorts().Last()); output.Dispose(); }
public void EnumeratePorts() { var api = new AlsaMidiApi(); foreach (var port in api.EnumerateAvailableInputPorts()) { Console.Error.WriteLine("Input: " + port.Id + " : " + port.Name); } foreach (var port in api.EnumerateAvailableOutputPorts()) { Console.Error.WriteLine("Output: " + port.Id + " : " + port.Name); } }