playing underruns
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thanks for responding Paul.
I'm using Red Hat 7.2 which is the 2.4 kernel and the 0.9.0rc7 ALSA driver.
I'm not sure why you want to know about the disk controller since there is no disk access in the real-time part of my application. But I am using a Dell Inspiron 8200 and I looked on the web at the spec sheet which describes the disk as "Ultra ATA." They didn't have any info about controllers unless ATA is some kind of controller.
I think I have heard about the "low latency"
patch. My understanding about that is that it is for more precise delivery of signals. That is, more precise than the .01 secs promised and usually
delivered by Linux. With the current signal delivery my sound samples still
get written well before they should be played. I am writing samples .05 secs before they time they should actually move the speaker while my signals are only rarely any later than .02 secs after the time requested.
Of course, I have no idea what must happen
between the time I write the samples and when they actually are turned into sound.
Chris
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
trying to summarize 3-4 years of experience with this is hard. but lets start by pointing out that its possible that your disk controller causes the kernel to delay scheduling for up to 100msecs. i'm not sure if RH7 fixed this by setting the driver parameters correctly - i have heard that newer versions of RH do this. IDE/ATA drives have been notorious under linux for ruining any soft-real-time performance. and yes, your program may do no disk i/o, but that doesn't mean none is going on.
you need to run hdparm to get the driver parameters, and also check if you have a file /proc/sys/kernel/lowlatency.
--p
ps. and BTW, in my regularly scheduled plug, please, please take a
look at jackit.sf.net for a much easier and more useful way to write audio apps for linux. and now, back to our program!
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en