Re: [alsa-devel] Can ALSA invoke a Callback ?
26 Aug
2011
26 Aug
'11
5:54 p.m.
Ru Vuott wrote:
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
4867
Age (days ago)
4867
Last active (days ago)
0 comments
1 participants
participants (1)
-
Clemens Ladisch