Method

ALSACtlCardreplace_elems

Declaration [src]

gboolean
alsactl_card_replace_elems (
  ALSACtlCard* self,
  const ALSACtlElemId* elem_id,
  guint elem_count,
  ALSACtlElemInfoCommon* elem_info,
  GList** entries,
  GError** error
)

Description [src]

Add user-defined elements to replace the existent ones.

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

Parameters

elem_id ALSACtlElemId
 

A ALSACtlElemId.

 The data is owned by the caller of the function.
elem_count guint
 

The number of elements going to be added.

elem_info ALSACtlElemInfoCommon
 

An instance of object which implements ALSACtlElemInfoCommon.

 The data is owned by the caller of the function.
entries A list of const ALSACtlElemId*
 

The list of renewed element identifiers.

 The argument will be set 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.