You have come very far on your adventurous journey: you have mastered the creation of interactive scenes, you have the power to control physical forces, and you know how to fine-tune materials and visual effects. Your game world is looking pretty good already. But suddenly your spider sense tingles. Did the birds stop singing? Is there danger ahead? An experienced explorer knows what is missing: sound effects. As always, the mighty SimpleApplication
is your friend and gives you access to a preconfigured AudioRenderer
object. AudioRenderer
supports the widely-used Open Audio Library (OpenAL) interface that is exposed by the
Lightweight Java Game Library (LWJGL).
In this chapter, you will learn how to complete your game, by adding the following:
Ambient sounds, GUI beeps, and music
Positional sound and directional sound
Time to switch on the surround system (or grab your headphones) and make some noise!