Method

ALSATimerUserInstanceattach_as_slave

Declaration [src]

gboolean
alsatimer_user_instance_attach_as_slave (
  ALSATimerUserInstance* self,
  ALSATimerSlaveClass slave_class,
  int slave_id,
  GError** error
)

Description [src]

Attach the instance as an slave to another instance indicated by a pair of slave_class and slave_id. If the slave_class is ALSATimerSlaveClass, the slave_id is for the PID of application process which owns the instance of timer. If the slave_class is ALSATimerSlaveClass, the slave_id is the numeric ID of queue bound for timer device.

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

Parameters

slave_class ALSATimerSlaveClass
 

The class identifier of master instance, one of ALSATimerSlaveClass.

slave_id int
 

The numeric identifier of master instance.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.