On Tue, 10 Jun 2003, Sundaranathan S wrote:

> Hi  All,
> 
>         Can anyone explain me what is the purpose of snd_pcm_forward in
> pcm.c.

The forward means exactly what you expect. You can go ahead in the ring
buffer without filling/reading of any samples. It means that affected
changes are not altered like write or mmap does for playback or you can
skip data for capture. It may be useful for realtime applications where
data might be ready in different times (network transfer etc.).

> Also what is the use of __snd_pcm_forward macro and where is it defined.
> I am not able to find any definition for this macro __snd_pcm_forward.

Look for INTERNAL() macro and read carefully the function declaration.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to