Method

ALSACtlCardopen

Declaration [src]

gboolean
alsactl_card_open (
  ALSACtlCard* self,
  guint card_id,
  gint open_flag,
  GError** error
)

Description [src]

Open ALSA control character device for the sound card.

The call of function executes open(2) system call for ALSA control character device.

Parameters

card_id guint
 

The numeric ID of sound card.

open_flag gint
 

The flag of open(2) system call. O_RDONLY is forced to fulfil internally.

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

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.