mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-23 08:56:45 -05:00
Added empty check functions for format and subformat mask
This commit is contained in:
parent
0e746d674b
commit
81512cb3f3
1 changed files with 22 additions and 0 deletions
|
|
@ -2359,6 +2359,17 @@ int snd_pcm_format_mask_test(const snd_pcm_format_mask_t *mask, snd_pcm_format_t
|
||||||
return snd_mask_test((const snd_mask_t *) mask, (unsigned long) val);
|
return snd_mask_test((const snd_mask_t *) mask, (unsigned long) val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief test, if given a #snd_pcm_format_mask_t is empty
|
||||||
|
* \param mask pointer to mask
|
||||||
|
* \retval 0 not empty
|
||||||
|
* \retval 1 empty
|
||||||
|
*/
|
||||||
|
int snd_pcm_format_mask_empty(const snd_pcm_format_mask_t *mask)
|
||||||
|
{
|
||||||
|
return snd_mask_empty((const snd_mask_t *) mask);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief make a format present in a #snd_pcm_format_mask_t
|
* \brief make a format present in a #snd_pcm_format_mask_t
|
||||||
* \param mask pointer to mask
|
* \param mask pointer to mask
|
||||||
|
|
@ -2451,6 +2462,17 @@ int snd_pcm_subformat_mask_test(const snd_pcm_subformat_mask_t *mask, snd_pcm_su
|
||||||
return snd_mask_test((const snd_mask_t *) mask, (unsigned long) val);
|
return snd_mask_test((const snd_mask_t *) mask, (unsigned long) val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief test, if given a #snd_pcm_subformat_mask_t is empty
|
||||||
|
* \param mask pointer to mask
|
||||||
|
* \retval 0 not empty
|
||||||
|
* \retval 1 empty
|
||||||
|
*/
|
||||||
|
int snd_pcm_subformat_mask_empty(const snd_pcm_subformat_mask_t *mask)
|
||||||
|
{
|
||||||
|
return snd_mask_empty((const snd_mask_t *) mask);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief make a subformat present in a #snd_pcm_subformat_mask_t
|
* \brief make a subformat present in a #snd_pcm_subformat_mask_t
|
||||||
* \param mask pointer to mask
|
* \param mask pointer to mask
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue