Table of Contents
Now you’re ready to play the playlist. Rather than playing the Music Segments as you’ve done up to this point, you will now play the Explore Music Playlist Container. You saw that the default Group has a property set to Sequence Continuous. This means that the Music Segments play in the order they are listed.
-
Be sure that the Explore Music Playlist Container is selected and press play.
As you hear the music play, you’ll see that the yellow Play Cursor shows which Music Segment is heard. It’s especially important to notice that as Wwise moves from one Music Segment to the next you’ll briefly see two Play Cursors appear simultaneously. This is because Wwise is playing the next segment before the previous one ends in order to make smooth transitions between segments. This was all made possible because of the entry and exit markers you defined earlier in this lesson. Observe the figure below.
Notice how the second Music Segment begins to play early so that its entry marker aligns with the exit marker of the first Music Segment. Once the second segment begins to play, the first Music Segment will also continue to play so that you can hear the natural decay of its instrumentation while the next segment takes over. The synchronization of this transition is done to sample level accuracy. This is the magic of the Wwise interactive music system and why it was so important to define those entry and exit cues earlier!
The playlist ordered itself in alphabetical order, which is the order in which you're hearing the Music Segments played. The order can easily be changed by simply dragging the objects in the group. For example, the main theme should probably be established first.
-
In the Music Playlist Editor, drag the Explore-Theme Music Segment above the Explore-Arpeggio Music Segment and play.
The music is played back in the new order, and once again the transitions between segments are perfectly smooth.
Currently, when the last Music Segment in the list is played, the music stops. In the game, the player can be in an exploratory mode for an indefinite amount of time, so we don’t want the music to stop when the end of the playlist is reached. Using the Loop Count feature, any Group or individual Music Segment within a Group can be set to play a set amount of times. In this case you want the Group to repeat forever. While setting the Group’s Loop Count to 10000 would probably do the trick, you’d better make sure you’re covered in the event the player wants to camp in a safe area of the map for a really long time. For this you can set the Loop Count to Infinite. The Infinite value takes the place of 0 in the numeric scale.
-
On the group, click the Loop Count’s down arrow to change the value to Infinite.
Now the playlist will play over and over again forever.