Method

ALSACtlCardread_elem_value

Declaration [src]

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

Description [src]

Read given value from element indicated by the given identifier.

The call of function executes ioctl(2) system call with SNDRV_CTL_IOCTL_ELEM_READ 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 argument will be modified 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.