Mail Archives: djgpp/1998/03/05/19:04:45
Luke Bishop writes:
>I plan on using it for a 3D positional background sound-effect library for
>my 3D game. The routine prototype checks to insure that it doesn't eat
>timers, and will scale itself down in execution length if it takes too
>long. The problem is, in conjunction with an optimized rendering pipeline,
>it is almost impossible to get real-time buffer fills.
It gets easier the bigger you make your buffers. Can't you just scatter
calls to your stream update routine at regular points during the drawing
code? A little bit clunky, but I think that is the only really reliable
method.
Of course you can go on using a timer interrupt update if you prefer,
but be warned that this could have problems if the interrupt goes off at
the wrong time (_extremely_ unlikely, but possible), and that it is very
likely not to work with future drivers for other soundcards.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -