[alsa-devel] How to set a new name on rawmidi?

Clemens Ladisch clemens at ladisch.de
Sun Jan 3 22:47:40 CET 2016


Daniel Viksporre wrote:
> I opened a MIDI connection with...
>
> snd_rawmidi_open(&read_handle, &write_handle, "virtual", 0);
>
> But how do i set a useful name on it, that can be seen in other programs?

You don't.

The RawMIDI API was designed for 'real' hardware devices, which already
have a name.

To create a virtual MIDI port, you should use the sequencer API.


Regards,
Clemens


More information about the Alsa-devel mailing list