Method

ALSACtlCardcreate_source

Declaration [src]

gboolean
alsactl_card_create_source (
  ALSACtlCard* self,
  GSource** gsrc,
  GError** error
)

Description [src]

Allocate GSource structure to handle events from ALSA control character device. In each iteration of GMainContext, the read(2) system call is executed to dispatch control event for ALSACtlCard::handle-elem-event signal, according to the result of poll(2) system call.

Parameters

gsrc GSource
 

A GSource to handle events from ALSA control character device.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.