Mathieu Rondonneau wrote:

> 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?

Yes IIRC

> I'm using snd_pcm_lib_preallocate_pages_for_all api for memory space allocation.
> Does it mean the buffer isn't contiguous?

The buffer usually is contiguous.  But the copy callback is used for
cases where the real buffer is somewhere else, so it wouldn't need to
be contiguous.


Regards,
Clemens




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

Reply via email to