From: Paul Davis Subject: Re: Request for advice on stopping xruns Date: Wed, 06 Mar 2002 03:06:19 -0500 Message-ID: <200203061305.IAA15354@renoir.op.net> In-reply-to: Your message of "Wed, 06 Mar 2002 08:50:28 GMT." <3C85D854.484BF9EF@solid-state-logic.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Fergus Reid Cc: alsa-devel List-Id: alsa-devel@alsa-project.org >Hi, I'm developing an 8 channel recorder based on alsa0.9.0beta10 and a >Terratec EWS88mt sound card. >I'm now using a 2.4.18 kernel with the Andrew Morton patches applied. I >really want to be able to record/playback at the full 96k 24bits on all >8 channels simultaneously, but I need absolutely no under/overruns. >Currently, as I try to up the bandwidth requirements I get xruns >occurring more and more frequently; I'm not even sure if I can guarantee >a maximum, before the onset of xruns, although 16bit 44.1 may well be >okay. > >I don't care about other system processes, so I've set the record and >playback threads to SCHED_FIFO prio 99 (although I don't really know if >this is the right thing to do!) > >Is there anything I can do/change/not do to eliminate xruns altogether? You cannot eliminate xruns altogether. xruns are caused either by OS scheduling delay, or by processor load. I trust that you are not trying to read/write from/to disk from the same thread as you are handling audio in ... Ardour (http://ardour.sf.net) records 24 channels with 32 bit samples with no xruns. Perhaps you are not familiar with this project. It uses JACK (http://jackit.sf.net) as its underlying audio engine, which in turn uses ALSA. --p _______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel