Method

ALSATimerUserInstanceattach

Declaration [src]

gboolean
alsatimer_user_instance_attach (
  ALSATimerUserInstance* self,
  ALSATimerDeviceId* device_id,
  GError** error
)

Description [src]

Attach the instance to the timer device. If the given device_id is for absent timer device, the instance can be detached with error.

The call of function executes ioctl(2) system call with SNDRV_TIMER_IOCTL_SELECT command for ALSA timer character device.

Parameters

device_id ALSATimerDeviceId
 

A ALSATimerDeviceId to which the instance is attached.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.