Function

ALSATimerset_device_params

Declaration [src]

gboolean
alsatimer_set_device_params (
  ALSATimerDeviceId* device_id,
  const ALSATimerDeviceParams* device_params,
  GError** error
)

Description [src]

Set the given parameters to the timer indicated by the identifier.

The call of function executes open(2), close(2), and ioctl(2) system call with SNDRV_TIMER_IOCTL_GPARAMS command for ALSA timer character device.

Parameters

device_id ALSATimerDeviceId
 

A ALSATimerDeviceId to identify the timer device.

 The data is owned by the caller of the function.
device_params ALSATimerDeviceParams
 

The parameters of timer device.

 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.