Re: [tuxracer-devel] Sound
Status: Beta
Brought to you by:
jfpatry
From: Steve B. <sjb...@ai...> - 2000-06-11 22:04:09
|
Steve Kirkendall wrote: > > A year or so ago, I was working on a simple racing game for Linux systems > without 3D acceleration. I got busy with paying projects at about the > point where my game was becoming playable. The sound support is fairly > complete though. I'd like to offer it to this project. > > The sound server is a separate program named "unixsnd", and it reads sound > requests from stdin. The typical interface style is very simple: When the CPU is *really* busy running the graphics and other parts of the game, how do you guarantee that your sound server will not get delayed in execution to the point where the sound breaks up? I've found that I need to keep the sound in the same thread as everything else (at least on single CPU machines) in order to be able control when it gets called. The alternative seems to be to crank the priority of the sound task up above the graphics - but to do that you have to run as root - or reduce the priority of the graphics...neither seems a very attractive option. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |