On Thu, 11 Nov 2010, Irfan Shaikh wrote:
Thanks for reply,
Please tell me if my understanding is correct
Check number of frames ready to be written in DMA area - using snd_pcm_avail_update
Call snd_pcm_mmap_begin(snd_pcm_t * pcm, const snd_pcm_channel_area_t ** areas, snd_pcm_uframes_t * offset, snd_pcm_uframes_t * frames)
(what does offfset specify here ?)
Offset to areas.
- I need to fill my audio data to be played in area {Please tell me if this is correct}
Yes.
snd_pcm_mmap_commit(pcm_handle, offset, frames);
Please tell me is my understanding correct to play my audio buffer
on ASLA playback device.
You may consult the pcm.c example for all transfer methods:
http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=test/pcm.c;hb=HEA...
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.