mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Improve hw_params documentation
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
235aec0a75
commit
43956de710
2 changed files with 25 additions and 2 deletions
|
|
@ -44,8 +44,23 @@ extern "C" {
|
|||
|
||||
/** PCM generic info container */
|
||||
typedef struct _snd_pcm_info snd_pcm_info_t;
|
||||
/** PCM hardware configuration space container */
|
||||
|
||||
/** PCM hardware configuration space container
|
||||
*
|
||||
* snd_pcm_hw_params_t is an opaque structure which contains a set of possible
|
||||
* PCM hardware configurations. For example, a given instance might include a
|
||||
* range of buffer sizes, a range of period sizes, and a set of several sample
|
||||
* formats. Some subset of all possible combinations these sets may be valid,
|
||||
* but not necessarily any combination will be valid.
|
||||
*
|
||||
* When a parameter is set or restricted using a snd_pcm_hw_params_set*
|
||||
* function, all of the other ranges will be updated to exclude as many
|
||||
* impossible configurations as possible. Attempting to set a parameter
|
||||
* outside of its acceptable range will result in the function failing
|
||||
* and an error code being returned.
|
||||
*/
|
||||
typedef struct _snd_pcm_hw_params snd_pcm_hw_params_t;
|
||||
|
||||
/** PCM software configuration container */
|
||||
typedef struct _snd_pcm_sw_params snd_pcm_sw_params_t;
|
||||
/** PCM status container */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue