public void CreateInputConnectedPort() { var api = new AlsaMidiApi(); var input = api.CreateInputConnectedPort(api.EnumerateAvailableInputPorts().Last()); input.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); } }