Added snd_*_open_lconf functions.

Some minor changes in config interface documentation.
This commit is contained in:
Jaroslav Kysela 2001-11-24 17:47:01 +00:00
parent f830a77334
commit c33c5760ab
14 changed files with 145 additions and 4 deletions

View file

@ -592,6 +592,21 @@ int snd_ctl_open(snd_ctl_t **ctlp, const char *name, int mode)
return snd_ctl_open_noupdate(ctlp, snd_config, name, mode);
}
/**
* \brief Opens a CTL using local configuration
* \param ctlp Returned CTL handle
* \param name ASCII identifier of the CTL handle
* \param mode Open mode (see #SND_CTL_NONBLOCK, #SND_CTL_ASYNC)
* \param lconf Local configuration
* \return 0 on success otherwise a negative error code
*/
int snd_ctl_open_lconf(snd_ctl_t **ctlp, const char *name,
int mode, snd_config_t *lconf)
{
assert(ctlp && name && lconf);
return snd_ctl_open_noupdate(ctlp, lconf, name, mode);
}
/**
* \brief Set CTL element #SND_CTL_ELEM_TYPE_BYTES value
* \param ctl CTL handle