Table of Contents
The raw MIDI interface is used for hardware MIDI ports that can be accessed as a byte stream. It is not used for synthesizer chips that do not directly understand MIDI.
ALSA handles file and buffer management. All you have to do is to write some code to move data between the buffer and the hardware.
The rawmidi API is defined in
<sound/rawmidi.h>
.