From: Paul Davis Subject: Re: Avoiding xruns... was Re: smix plugin available? Date: Wed, 27 Nov 2002 08:55:00 -0500 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3DE4C38F.70302@superbug.demon.co.uk> Return-path: In-reply-to: Your message of "Thu, 28 Nov 2002 00:07:27 +1100." <3DE4C38F.70302@superbug.demon.co.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James Courtier-Dutton Cc: Jaroslav Kysela , "alsa-devel@lists.sourceforge.net" List-Id: alsa-devel@alsa-project.org >I am currently taking the following approach: - >Always prepare 2 audio hardware periods of sample frames in advance >inside the user app. > >1) snd_pcm_wait() >2) write() >3) prepare new sample frames, then go back to (1). for lower latency, you'd do: 1) snd_pcm_wait() 2) prepare new sample frames 3) write(), then go back to (1). but for the kinds of things you are describing, your original order seems OK. --p ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en