1. Background Speaker Sound?
- Posted by "Carl R. White" <C.R.White at COMP.BRAD.AC.UK> May 21, 1997
- 705 views
Whilst trying to add some decent non-SB sound effects to Jiri's cool Aliens game (My high score: 978ish). I realised that Euphoria can't play through the PC speaker "in the background," so the game 'hangs' temporarily while the effect plays. I know for a fact that QBasic (hmm...) has the ability to play through the speaker while something else is going on. Any chance Euphoria could be made to do this? Is this a job for a little assembler code perchance? Carl PS: The programs I have on my web page are full of bugs. New versions coming tomorrow I hope... -- Carl R White | e-mail...: crwhite at comp.brad.ac.uk | finger...: crwhite at dcsun1.comp.brad.ac.uk | web......: http://www.student.comp.brad.ac.uk/~crwhite This message crossposted to alt.lang.euphoria 'cos no-one posts to it!
2. Re: Background Speaker Sound?
- Posted by Michael Packard <lgp at EXO.COM> May 21, 1997
- 693 views
On Wed, 21 May 1997, Carl R. White wrote: > > Whilst trying to add some decent non-SB sound effects to Jiri's cool > Aliens game (My high score: 978ish). I realised that Euphoria can't play > through the PC speaker "in the background," so the game 'hangs' > temporarily while the effect plays. > > I know for a fact that QBasic (hmm...) has the ability to play through the > speaker while something else is going on. Any chance Euphoria could be > made to do this? I break up my pc speaker sound effects into discrete parts and play part of the sfx each frame. At the beginning of frame processing for an event (like an explosion, say) I'll stick the right value in sound() to start it playing, then sound(0) at the end of that process or frame (depending on sound priority) a few microseconds later, then go on. When your program is frame based (I call them Simultaneous Event Driven Programs), your sound effects also need to be frame based. Do what you can while you can. =) Michael Packard Lord Generic Productions lgp at exo.com http://exo.com/~lgp A Crash Course in Game Design and Production http://exo.com/~lgp/euphoria