Selon Clemens Ladisch <[EMAIL PROTECTED]>: > Mathieu Rondonneau wrote: > > I don't understand why count is 1024 ? > > why count is not equal to runtime->period_size (i.e. 16*1024)? > > If your frame size is 4, this is the size of a memory page. I guess > ALSA wants to copy the data one page at a time, and this is required > if the buffer isn't contiguous.
How do i know the frame size? Is it the runtime->frame_bits value? the frame_bits is 16. I'm using snd_pcm_lib_preallocate_pages_for_all api for memory space allocation. Does it mean the buffer isn't contiguous? Thank you for your help. Mathieu ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel