Skip to contentSkip to conversation

Regarding ALSA Library

DISCUSSION Sundaranathan S 2 participants 2 messages Jun 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi All,

Can anyone explain me what is the purpose of snd_pcm_forward in
pcm.c. 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.

Can anyone clarify my doubts. Thanks and please forgive me if i
am misusing this list.

thanks,
-Sundaranathan
SIP Technologies & Exports Ltd

--
"Live as if to die tomorrow. Learn as if to live forever."

#1 lore raw
Quoted 4 lines · Sundaranathan S

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.).

Quoted 2 lines

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.