Method

ALSATimerUserInstancecreate_source

Declaration [src]

gboolean
alsatimer_user_instance_create_source (
  ALSATimerUserInstance* self,
  GSource** gsrc,
  GError** error
)

Description [src]

Allocate GSource structure to handle events from ALSA timer character device. In each iteration of GMainContext, the read(2) system call is executed to dispatch timer event for either ALSATimerUserInstance::handle-tick-time-event or ALSATimerUserInstance::handle-real-time-event signals, according to the result of poll(2) system call.

Parameters

gsrc GSource
 

A GSource to handle events from ALSA timer 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.