<chapter id="introduction">
<title>Introduction</title>
<para>This library is designed for applications to manipulate ALSA
- control character device and operate functionality on sound card
- abstracted as element. Event dispatching is based on GLib's GMainContext
- and GMainLoop with created GSource.
- </para>
+ control character device and operate control functionality abstracted
+ as card and element. ALSACtlCard represent the card. It holds file
+ descriptor and creates GSource for event dispatching by GLib's
+ GMainContext/GMainLoop.</para>
</chapter>
<chapter id="alsactl-enumerations">
* sound card
*
* A #ALSACtlCardInfo is a GObject-derived object to represent information of
- * sound card. A call of alsactl_card_get_info() returns an instance of the
+ * sound card. The call of alsactl_card_get_info() returns an instance of the
* object.
+ *
+ * The object wraps 'struct snd_ctl_card_info' in UAPI of Linux sound subsystem.
*/
struct _ALSACtlCardInfoPrivate {
struct snd_ctl_card_info info;
* A #ALSACtlCard is a GObject-derived object to represent sound card.
* Applications use the instance of object to manipulate functionalities on
* sound card.
+ * After the call of alsactl_card_open() for the numerical ID of sound card,
+ * the object maintains file descriptor till object destruction.
*/
struct _ALSACtlCardPrivate {
int fd;
* @Title: ALSACtlElemId
* @Short_description: A boxed object to represent the identifier of element.
*
- * A #ALSACtlElemId is an boxed object to represent the identifier of element.
+ * A #ALSACtlElemId is a boxed object to represent the identifier of element.
* It points to a element by two ways; by the numerical ID, or by the
* combination of the type of interface, the numerical ID of device, the
* numerical ID of subdevice, the name, and the index.
+ *
+ * The object wraps 'struct snd_ctl_elem_id' in UAPI of Linux sound subsystem.
*/
ALSACtlElemId *ctl_elem_id_copy(const ALSACtlElemId *self)
{
*
* A #ALSACtlElemInfo is an abstract object to represent the common information
* of any type of element.
+ *
+ * The object wraps 'struct snd_ctl_elem_info' in UAPI of Linux sound subsystem.
*/
struct _ALSACtlElemInfoPrivate {
struct snd_ctl_elem_info info;
* A #ALSACtlElemValue is boxed object to represent the container of values for
* any type of element. The arrays of values for each type of element shares the
* same storage, thus it's important for applications to distinguish the type of
- * element in advance of accesing the array. The object is used for the call of
+ * element in advance of accessing the array. The object is used for the call of
* alsactl_card_write_elem_value() and alsactl_card_read_elem_value().
+ *
+ * The object wraps 'struct snd_ctl_elem_value' in UAPI of Linux sound subsystem.
*/
struct _ALSACtlElemValuePrivate {
struct snd_ctl_elem_value value;
/**
* SECTION: query
* @Title: Global functions in ALSACtl
- * @Short_description: Global functions in ALSACtl
+ * @Short_description: Global functions available without holding any file
+ * descriptor
*/
// For error handling.