Re: Avoiding xruns... was Re: [Alsa-devel] smix plugin available?

2002-11-29 Thread Paul Davis
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

Re: Avoiding xruns... was Re: [Alsa-devel] smix plugin available?

2002-11-29 Thread James Courtier-Dutton
Paul Davis wrote: 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)

Avoiding xruns... was Re: [Alsa-devel] smix plugin available?

2002-11-29 Thread James Courtier-Dutton
I have read your comments below, and I would like to try to explain the problems I am coming up against when writing a multi-media app. I am not going to say that I know everything about kernel scheduling, but for multi media applications, avoiding xruns is a major concern. This becomes