Skip to contentSkip to conversation

Can ALSA invoke a Callback ?

DISCUSSION Ru Vuott 2 participants 2 messages Aug 26, 2011

lore
Share & tools
lore

Ru Vuott

author
#0 lore raw

Hello,

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

Thanks
Paolo

#1 lore raw
Quoted 2 lines · Ru Vuott

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 select()).

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

Regards,
Clemens