From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Locked Streams in Allegro Date: Thu, 5 Mar 1998 19:00:17 +0000 Organization: None Message-ID: References: <01bd3a85$0198e2a0$0201a8c0 AT technoid> <01bd46de$b9adc8a0$0348a5c6 AT technoid> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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