[alsa-devel] Can ALSA invoke a Callback ?

Clemens Ladisch clemens at ladisch.de
Fri Aug 26 16:34:00 CEST 2011

Ru Vuott wrote:
> I would like to know how I can ask ALSA to invoke a "Callback"
> function when an Midi event arrives from an extern-device.

This is not possible.

The mechanism usually used for this is to check for events from the
MIDI device in the main message loop (which must be based on poll() or

Are you using raw MIDI or sequencer devices?  How does your program's
event handling work?


More information about the Alsa-devel mailing list