Mail Archives: djgpp/1997/12/29/11:32:17
DirectSound is the easiest way to go. All you have to do is sample your
effect in mono. Then, you tell DirectSound what the x, y, and z is of the
sound. Then, just play it. It does all the rolloff, muffling, and stereo
mixing for you.
For more advanced effects, you can have your engine set velocity vectors to
get Doppler shifts. You can also exaggerate/minimize the Doppler/rolloff
effects as wanted.
As for surround: since 3-D positional audio is typically realized only on
stereo speakers, the Z is emulated via muffling and other minor effects (such
as shape-of-ear distortion). I'm not familiar with any sound cards that
actually have a surround output, but once they come out, it looks like
DirectSound will support it.
--
Scott J. Tringali, Software Engineer #include
</dev/tty>
International Air Traffic Control, Raytheon Electronic Systems
If you want to email me, please do the obvious. If it isn't obvious, don't
bother.
- Raw text -