ok..the joke was ruined after about 2 times...
A bit of on-topic...
Is there any way in linux to schedule yourself, like request a context change in x MS....this way, you could reload DMA, just in time...this could possibly be insecure however, but anyway
What to Program...
IIRC, there is some way to give yourself realtime priority... you just need to be root to do so. For more info about that, check out the glibc info book, section 22.3
What might be a better option is something like Arts/esd/<some other sound daemon>. You set something up to run at boot, with fairly high priority (even -5 should do...), that will buffer, say, 1 second of sound. Then, your player feeds the uncompressed PCM stream to it, and the daemon makes sure that the sound hardware's buffers stay filled.
MPD does something similar, except (in my config) MPD fills both parts. On my 650MHz Blade 150, it doesn't burp even with 3 "make -j2"'s going at once.
What might be a better option is something like Arts/esd/<some other sound daemon>. You set something up to run at boot, with fairly high priority (even -5 should do...), that will buffer, say, 1 second of sound. Then, your player feeds the uncompressed PCM stream to it, and the daemon makes sure that the sound hardware's buffers stay filled.
MPD does something similar, except (in my config) MPD fills both parts. On my 650MHz Blade 150, it doesn't burp even with 3 "make -j2"'s going at once.
My project: Xenon