Game Development Reference
In-Depth Information
A great way to generate sound effects is to use the hard to pronounce sfxr pro-
gram created by Tomas Pettersson. It's available on the CD and be can seen in
Figure 9.11.
Sfxr is a program that randomly generates sound effects for games. The sound
effects sound a little like those that might have been generated by NES consoles.
Keep clicking the Randomize button and new sounds will be generated. Once
you've found a sound you like, it can be exported as a wave file. I've included two
generated sound effects called soundeffect1.wav and soundeffect2.wav in the
Assets directory on the CD. These should be added to the TestEngine project in
the same way the textures were added. Sfxr sounds are great for retro-style games
or placeholder sounds.
Developing a SoundManager
OpenAL is a professional-level library used by many modern games, so it has a
wide range of support for more advanced sound effects, such as playing sounds
from a 3D position. It also has functions to generate the Doppler Effect.
Figure 9.11
Creating sound effects with sfxr.
 
Search WWH ::




Custom Search