mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Added snd_pcm_hw_params_current() function and clear() functions for structures
This commit is contained in:
parent
453dd9f698
commit
dac0626b9f
6 changed files with 56 additions and 2 deletions
|
|
@ -60,6 +60,14 @@ INTERVAL_INLINE int snd_interval_value(const snd_interval_t *i)
|
|||
return i->min;
|
||||
}
|
||||
|
||||
INTERVAL_INLINE void snd_interval_set_value(snd_interval_t *i, unsigned int val)
|
||||
{
|
||||
i->openmax = i->openmin = 0;
|
||||
i->min = i->max = val;
|
||||
i->integer = 0;
|
||||
i->empty = 0;
|
||||
}
|
||||
|
||||
INTERVAL_INLINE int snd_interval_min(const snd_interval_t *i)
|
||||
{
|
||||
assert(!snd_interval_empty(i));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue