Table of Contents

Defining the Contents and Behaviors of Music Switch Containers

Music Switch Containers allow you to group pieces of music according to the different alternatives that exist for particular elements within a game. Each alternative is represented in the Switch Container by a Switch or state. For example, a Music Switch Container can be created for all the different types of action that can exist for your main character in the game. The container might contain Switches for fight sequences, stressful situations, and when the character is in stealth mode.

Within each Switch/State are the music objects related to that particular alternative. In this example, all the Music Segments related to fight sequences in the game would be grouped into the “Fight” Switch, all the Music Segments related to stressful situations would be grouped into the “Stress” Switch, and so on. When the game calls the Switch Container, Wwise verifies which Switch or State is currently active to determine which container or Music Segment to play.

The following illustration demonstrates what happens when an Event calls a Music Switch Container called “Character Action”. This container has grouped the music according to the different types of character action that can occur in game. In this example, there are two states: Stealth and Fight. When the Event calls the Music Switch Container, the character is in stealth mode (State=Stealth), so the music associated with stealth mode is played. A Music Playlist Container is used to group the different pieces of music within the stealth state so that different variations of the music can be played each time the character is in stealth mode.