VI. RawMidi direct access

RawMidi devices are opened exclusively for a selected direction. While more than one process may not open a given MIDI device in the same direction simultaneously, seperate processes may open a single MIDI device in different directions (i.e. process one opens a MIDI device in write direction and process two opens the same device in read direction). MIDI devices return EBUSY error to applications when other applications have already opened the requested direction.

Table of Contents
RawMidi structures — references to all RawMidi structures
snd_rawmidi_open — open a RawMidi device
snd_rawmidi_close — close a RawMidi device
snd_rawmidi_file_descriptor — obtain RawMidi file descriptor
snd_rawmidi_block_mode — set or reset the block behaviour
snd_rawmidi_info — obtain general information about the RawMidi device
snd_rawmidi_channel_params — set the communication parameters
snd_rawmidi_channel_status — obtain the communication status
snd_rawmidi_drain_output — destroy the output queue
snd_rawmidi_channel_flush — flush the output or input queue
snd_rawmidi_write — transfer the MIDI stream to RawMidi device
snd_rawmidi_read — transfer the MIDI stream from RawMidi device