Skip to contentSkip to conversation

Can ALSA invoke a Callback ?

DISCUSSION Clemens Ladisch 1 participant 1 message Aug 29, 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 6 lines · Ru Vuott
Quoted 3 lines · you

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.

Quoted 3 lines

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.

Regards,
Clemens