Re: [Alsa-devel] double buffer xruns

2001-11-21 Thread Paul Davis
>i suspect that you may not be writing chunks of the correct size to >the PCM device. by delaying for 1000msecs when you have no idea what sorry, i was forgetting what snd_pcm_wait() did. even so, this is still a design that could cause problems, i think. --p __

Re: [Alsa-devel] double buffer xruns

2001-11-21 Thread Paul Davis
>I am wanting to know wether there is some way I can get rid of these < 1ms >XRuns ? do note, hwoever, that it could easily be your application desing that is the problem. this: >while ((frameCount=dd->audio.readAudio()) && dd->audio.active){ > int written; >written=snd_pcm_writei

Re: [Alsa-devel] double buffer xruns

2001-11-21 Thread Paul Davis
>I am wanting to know wether there is some way I can get rid of these < 1ms >XRuns ? if they are not caused by your application's design (i haven't looked at it closely), then the answer is no, at least not without: 1) running it SCHED_FIFO, with mlockall() called 2) running a low-latency

[Alsa-devel] double buffer xruns

2001-11-21 Thread Matthew Flax
Hi, I am wanting to know wether there is some way I can get rid of these < 1ms XRuns ? I run an unmodded kernel with no latency patches. Versions : Advanced Linux Sound Architecture Driver Version 0.9.0beta8a. Compiled on Oct 15 2001 for kernel 2.4.10 with versioned symbols. I just changed my a