Esempio n. 1
0
        public void CreateInputConnectedPort()
        {
            var api   = new AlsaMidiApi();
            var input = api.CreateInputConnectedPort(api.EnumerateAvailableInputPorts().Last());

            input.Dispose();
        }
Esempio n. 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);
            }
        }