This commit is contained in:
parent
8feb1a1d35
commit
fcfda68d82
2 changed files with 10 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue