Chapter 9. RawMIDI Interface

Table of Contents

open callback
close callback
trigger callback for output substreams
trigger callback for input substreams
drain callback


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>.