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

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(dd-pcm,

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