Method

ALSACtlCardwrite_elem_value

Declaration [src]

gboolean
alsactl_card_write_elem_value (
  ALSACtlCard* self,
  const ALSACtlElemId* elem_id,
  const ALSACtlElemValue* elem_value,
  GError** error
)

Description [src]

Write given value to element indicated by the given identifier.

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

Parameters

elem_id ALSACtlElemId
 

A ALSACtlElemId.

 The data is owned by the caller of the function.
elem_value ALSACtlElemValue
 

A derivative of ALSACtlElemValue.

 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.