mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added snd_pcm_sync_id_t
This commit is contained in:
parent
d08c2eb251
commit
3c9d27c82d
2 changed files with 24 additions and 0 deletions
|
|
@ -4204,6 +4204,19 @@ unsigned int snd_pcm_info_get_subdevices_avail(const snd_pcm_info_t *obj)
|
|||
return obj->subdevices_avail;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Get hardware synchronization ID from a PCM info container
|
||||
* \param obj PCM info container
|
||||
* \return hardware synchronization ID
|
||||
*/
|
||||
snd_pcm_sync_id_t snd_pcm_info_get_sync(const snd_pcm_info_t *obj)
|
||||
{
|
||||
snd_pcm_sync_id_t res;
|
||||
assert(obj);
|
||||
memcpy(&res, &obj->sync, sizeof(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Set wanted device inside a PCM info container (see #snd_ctl_pcm_info)
|
||||
* \param obj PCM info container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue