[alsa-devel] Can ALSA invoke a Callback ?
clemens at ladisch.de
Mon Aug 29 11:12:44 CEST 2011
Ru Vuott wrote:
> you wrote:
> > These functions are designed to be used with poll(); to use
> > them with Gambas, extract the file descriptors and their event masks
> > from the pfds array and call GB.Watch() with these values.
> << GB.Watch() is an internal interpreter API. You can't use it in Gambas code.>>
Then how do you get access to the snd_seq_* functions? I assumed that
you have some module that offers a Gambas API on top of the ALSA C API;
that module then should also wrap the snd_seq_poll_* calls.
> I need a "file", so I could use in Gambas:
> hfile = Open "....." for Read W A T C H
You would need some mechanism to watch a file that is identified by its
already opened file descriptor, not by its name. It looks as if the
only such mechanism is something that uses the internal interpreter API.
More information about the Alsa-devel