PortMidi / portmidi

portmidi is a cross-platform MIDI input/output library
Other
118 stars 33 forks source link

pm_linux: set port name prior to creation #52

Closed theGreatWhiteShark closed 1 year ago

theGreatWhiteShark commented 1 year ago

in both alsa_in_open and alsa_out_open the calls to snd_seq_port_info_set_name took place after registering the port using snd_seq_create_port. Moving them infront of it fixes port naming.

rbdannenberg commented 1 year ago

Thanks - I was hoping to apply the port visibility/connectability changes whether this was virtual or not, so I think I will do some further code changes, but I'm merging this to try it out. I guess ALSA does not allow you to change port visibility or other info after it is created as I tried to do. I wish ALSA had better documentation.

theGreatWhiteShark commented 1 year ago

I wish ALSA had better documentation

Indeed. It's one of these widely used but purely documented Linux libraries