Пример #1
0
        public void CreateOutputConnectedPort()
        {
            var api    = new AlsaMidiApi();
            var output = api.CreateOutputConnectedPort(api.EnumerateAvailableOutputPorts().Last());

            output.Dispose();
        }
Пример #2
0
        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);
            }
        }