From d9dfe8f0234708f0de74844b05e1ae587deff09f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 5 Nov 2001 08:13:18 +0000 Subject: [PATCH] Added more descriptions for offset/size values for mmap access functions --- src/pcm/pcm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 3d236efe..445531d9 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -4304,8 +4304,8 @@ void snd_pcm_info_set_stream(snd_pcm_info_t *obj, snd_pcm_stream_t val) * \brief Application request to access a portion of direct (mmap) area * \param pcm PCM handle * \param areas Returned mmap channel areas - * \param offset Returned mmap area offset - * \param size mmap area portion size (wanted on entry, contiguous available on exit) + * \param offset Returned mmap area offset in bits + * \param size mmap area portion size in frames (wanted on entry, contiguous available on exit) * \return 0 on success otherwise a negative error code * * The function should be called before a sample-direct area can be accessed. @@ -4345,6 +4345,8 @@ int snd_pcm_mmap_begin(snd_pcm_t *pcm, /** * \brief Application has completed the access to area requested with #snd_pcm_mmap_begin * \param pcm PCM handle + * \param offset area offset in bits + * \param size area portion size in frames * \return 0 on success otherwise a negative error code * * To call this with offset/frames values different from that returned -- 2.47.1