Skip to contentSkip to conversation

Can ALSA invoke a Callback ?

DISCUSSION Clemens Ladisch 1 participant 1 message Aug 26, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Ru Vuott

I'm using Alsa "Seq" functions.

My midi-program - obviously - does not know exactly when the extern midi event 'll arrive.... Has it to read uninterruptedly his port, waiting for the events.... ?

This is done only in single-purpose command-line programs like arecordmidi. When you have other events, you collect the file descriptors of all your devices/pipes/whatever, and wait for all of them in a poll()-based loop.

How does your program handle events? Or are you using a GUI framework?

Regards,
Clemens