![]() |
![]() |
![]() |
Read pending mixer events
#include <sys/asoundlib.h> int snd_mixer_read( snd_mixer_t * handle, snd_mixer_callbacks_t * callbacks );
libasound.so
The snd_mixer_read() function reads pending mixer events from the mixer handle. As each event is read, the list of callbacks is checked for a handler for this event. If a match is found, the callback is invoked. This function is usually called on the return of the select() library call.
The number of events read form the handle, or a negative value on error.
See the example in Registering your application in the Controlling volume and balance chapter.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
snd_mixer_close(), snd_mixer_open()
![]() |
![]() |
![]() |