All of lore.kernel.org
 help / color / mirror / Atom feed
* buffers, periods, cycles.. oh my!
@ 2004-08-28  5:46 Davy Durham
       [not found] ` <1093718182.2150.26.camel@localhost>
  0 siblings, 1 reply; 8+ messages in thread
From: Davy Durham @ 2004-08-28  5:46 UTC (permalink / raw)
  To: alsa-devel

Hi,
   Something I don't seem to grasp is exactly what the difference is 
between, and min/max ranges of, periods and buffers.  I know that a 
sound card uses a buffer to which it reads/writes data (via DMA) and 
that an interrupt can be configured to trigger n times during that 
buffer's filling (these are periods and period count?)  Well, then 
there's API functions for buffer time and sizes (I assume you can set by 
time OR by size in frames, whichever you please, but you don't need to 
set by both).

  I've looked but to no avail.. is there some higher level documentation 
that explains the big picture here?

  When I fist started using the API I had a 1/4 second latency or so for 
playback.. I tried and tried to figure out why but couldn't.  Finally I 
coped JACKs use of the lib and eliminated that. 

  Now, I'm working on capture, but I can't seem to set the buffering 
time to more than 2*8192 frames.  I'd like to set it as high as possible 
to avoid studders in the recording and would rather not buffer the data 
myself if ALSA can already do that.

Thanks,
  Davy


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-09-05  2:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28  5:46 buffers, periods, cycles.. oh my! Davy Durham
     [not found] ` <1093718182.2150.26.camel@localhost>
2004-08-28 23:52   ` Davy Durham
2004-08-29  0:08   ` Davy Durham
2004-08-29 16:48     ` Paul Davis
2004-08-30 21:53       ` Davy Durham
     [not found]         ` <1094237841.2082.22.camel@localhost>
2004-09-05  1:38           ` Davy Durham
2004-09-05  2:13             ` Lee Revell
2004-08-29 16:50     ` Manuel Jander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.