Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 23rd, 2019 for the holiday period, and will reopen on January 3rd, 2020 at 9:00 a.m. EST. Learn more.

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. Make sure the Music Event you just created is selected.

    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 and expand the Default Work Unit.

    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 Generate All 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.

    Using this re-sequencing approach to music integration is an easy first step towards a truly dynamic video game score. Now that you've seen the fundamental process of importing and implementing audio in Wwise, move on to Lesson 2 to learn about another approach to music integration that can provide even more variety!