mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added snd_*_open_lconf functions.
Some minor changes in config interface documentation.
This commit is contained in:
parent
f830a77334
commit
c33c5760ab
14 changed files with 145 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue