Lesson 1

Table of Contents

Building the Music Into the Game

Now you’re ready to build your work into the game. There is a specific Event that has been coded into the game called Music. You need to create the Music Event in the Wwise project and connect it to the Explore Music Playlist Container. The process works in exactly the same way as it does for implementing sound effects.

[Note]

The fundamentals discussed in this section are covered in detail in the Wwise-101 course, lesson 1.

  1. Choose the Designer layout or press F5 and then click the Events tab.

  2. Right-click the Events folder, choose New Child > Work Unit and name the new Work Unit Music.

  3. Right-click the Music Work Unit, choose New Child > Empty Event and name the new Event Music.

  4. Click the Music Event.

    The Music Event Editor View appears and you can see that in the Event Editor View that the Event Action list, found in the pane on the left, is empty. You need to add the Explore Music Playlist Container to the list.

  5. In the Project Explorer, click the Audio tab then drag the Explore Music Segment object into the Action list.

    The default Play action is set to play the Explore Music Playlist Container when the Music Event is received from Cube. You should test the Event to make sure everything is working.

  6. Test the Event by selecting the Music Event in the Event Viewer and then clicking the Play button in the Transport view.

    The music plays, which means you’re now ready to build the SoundBank to integrate your work directly into the game.

  7. Choose the SoundBank layout or press F7. The SoundBank layout appears.

    You’re going to create a separate SoundBank just for music.

  8. In the SoundBank Manager click the New button and name the new SoundBank Music.

  9. Drag the Music Event into the Music SoundBank.

  10. Click the Music SoundBank’s check box. Be sure that the remaining SoundBanks, your platform and the English language are all selected and then click the Generate button.

  11. Close the Generating SoundBanks window and launch Cube.

  12. Navigate to the Wwise-201 level and play the game. The Start Music Event doesn’t occur until you open the first door of the level. The silence before creates the anticipation and the music provides the contrast once you begin to explore the area. As you move through the door, the main theme plays followed by the other Music Segments according to the structure you implemented in Wwise.