Table des matières

Integrating Events into your Game

After creating the events for your game, the sound designer can package them into SoundBanks. These SoundBanks are then loaded into your game, where the events can be triggered by your game's code. For example, when the player is killed, you would play the special “Die” sound and stop the “EnergyShield” sound by triggering the corresponding event.

To integrate these events into your game, the programmer must specify onto which game object the event actions will be performed. This is done by posting each event. An event should be posted by your game's code whenever you want the audio to change. You can post events using strings or ids.