From: Jaroslav Kysela Date: Fri, 18 Jun 2021 09:35:30 +0000 (+0200) Subject: pcm: improve docs for snd_pcm_sw_params_get_avail_min() and snd_pcm_status_get_avail_... X-Git-Tag: v1.2.6~47 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3f737a2a2c8d20e78dea3ea836997f9d74f602a0;p=alsa-lib.git pcm: improve docs for snd_pcm_sw_params_get_avail_min() and snd_pcm_status_get_avail_max() Fixes: https://github.com/alsa-project/alsa-lib/issues/44 Signed-off-by: Jaroslav Kysela --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 09df0f12..892abf98 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -6500,6 +6500,9 @@ int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, * \param params Software configuration container * \param val returned minimum available frames to consider PCM ready * \return 0 otherwise a negative error code + * + * This is a threshold value when the PCM stream is considered as ready for + * another read/write operation or poll event. */ #ifndef DOXYGEN EXPORT_SYMBOL int INTERNAL(snd_pcm_sw_params_get_avail_min)(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val) @@ -6960,6 +6963,8 @@ snd_pcm_uframes_t snd_pcm_status_get_avail(const snd_pcm_status_t *obj) /** * \brief Get maximum number of frames available from a PCM status container after last #snd_pcm_status call * \return Maximum number of frames ready to be read/written + * + * This value returns the peak for the available frames between #snd_pcm_status calls. */ snd_pcm_uframes_t snd_pcm_status_get_avail_max(const snd_pcm_status_t *obj) {