Re: [linux-audio-dev] HOw to create an ALSA out port

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Mon Jul 25 2005 - 12:43:59 EEST

Christoph Eckert wrote:
> I only need to write sysex data which are kept in a character
> array. Is there a possibility to easily
>
> * connect to a certain port of a device (the Midisport control
> port)
> * send the contents of the array to this port
> * close the port

This is pretty much exactly what amidi does. The writing itself can
be done trivially with snd_rawmidi_open/snd_rawmidi_write/
snd_rawmidi_close. To get the device name of the control port, you
have to enumerate the MIDI ports; see the device_list function.

HTH
Clemens
Received on Mon Jul 25 16:15:06 2005

This archive was generated by hypermail 2.1.8 : Mon Jul 25 2005 - 16:15:06 EEST