diff --git a/DMX-2.0/AlsaSeqLib.cs b/DMX-2.0/AlsaSeqLib.cs index a92b81f..35175f3 100644 --- a/DMX-2.0/AlsaSeqLib.cs +++ b/DMX-2.0/AlsaSeqLib.cs @@ -121,10 +121,8 @@ namespace DMX2 clientId = Invoke.snd_seq_client_id(seq_handle.Handle); - inport= Invoke.snd_seq_create_simple_port(seq_handle.Handle,"dmx_ctrl_in", - SND_SEQ_PORT_CAP_WRITE + SND_SEQ_PORT_CAP_SUBS_WRITE, - SND_SEQ_PORT_TYPE_APPLICATION); - outport= Invoke.snd_seq_create_simple_port(seq_handle.Handle,"dmx_ctrl_out", + outport = inport= Invoke.snd_seq_create_simple_port(seq_handle.Handle,"dmx_ctrl", + SND_SEQ_PORT_CAP_WRITE + SND_SEQ_PORT_CAP_SUBS_WRITE + SND_SEQ_PORT_CAP_READ + SND_SEQ_PORT_CAP_SUBS_READ, SND_SEQ_PORT_TYPE_APPLICATION); diff --git a/DMX-2.0/MidiEventProvider.cs b/DMX-2.0/MidiEventProvider.cs index bf9e61e..0a6a60d 100644 --- a/DMX-2.0/MidiEventProvider.cs +++ b/DMX-2.0/MidiEventProvider.cs @@ -66,8 +66,14 @@ namespace DMX2 public MidiEventProvider (EventManager manager) { - manager.RegisterProvider(this); - AlsaSeqLib.Init(); + manager.RegisterProvider (this); + AlsaSeqLib.Init (); + foreach (var cli in AlsaSeqLib.EnumClients()) { + Console.WriteLine(cli.Name); + foreach(var p in cli.Ports){ + Console.WriteLine("Port {0} - {1} => caps {2}",p.PortId,p.Name,p.Caps); + } + } } public void SendEvent (AlsaSeqLib.snd_seq_event_t ev)