Paul over at PlanetInAction is at it again. The man that brought us Ships and Helicopters has a new toy for us to play with. This is more of tech demo than a game, but it’s quite impressive.
He’s simply calling it a 3D sound demo. Here is a brief video of it in action:
You can read the full write-up on his site, but here’s the basics of it:
sound3D manages a collection of soundSource objects that have knowledge of the location they are at. A soundSource has a collection of channels. Each channel represents a sound file with associated falloff range. Outside this range the channel can not be heard.
Multiple sound channels per sound source enables you to use different sounding audio files for nearby and far away. The “far” file should sound more muffled and have a longer falloff range. These audio effects can be prepared in a sound editor such as Audacity.
The helicopter on the beach is a great example showing how this works. Move in close and notice how the engine sounds louder but also sharper.
Be sure to check out the PlanetInAction site for more info.