What to Program...

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

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
TheQuux
Member
Member
Posts: 73
Joined: Sun Oct 22, 2006 6:49 pm

Post by TheQuux »

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.
My project: Xenon
Post Reply