On Thu, 13 Jul 2006, Richard Drummond wrote:
Hi Kjetil
On Thursday 13 July 2006 01:55, Kjetil S. Matheussen wrote:Yes, as I have said earlier. Its impossible to get descent audio (ie. without clicks or large lag) in linux without running realtime.
It's not impossible. I can do it here. It's not perfect, but for most purposes its good enough. I want to get to be able to get to the point where somebody can install E-UAE on an average Linux distribution, and it'll work acceptably for playing classic Amiga games.
Of course, for those who want to go the extra mile, then, yes, real-time patches may be necessary.
So the ideal solution is to put all things that can block, like graphics, disk, input, in their own threads which are communicated with thru lockfree ringbuffers
I experimented with lock-free ring-buffers for audio. IMHO, it doesn't solve any more problems than it creates.
I have the knowledge to do the realtime and threading part, but unfortunately not the time to do the programming. But maybe I'll do it anyway. :-)
My ee-uae version of e-uae was a step towards the above goal, and it works quite well for system friendly midi-programs, but I haven't tried with audio.
Please do contribute.
I want to. :-)