1.3) Importing Sounds
It is now time to import the first soundfile into Wwise and start with the Sound Design for the Platformer Game. As you may have noticed earlier, there is a game call of the type Event named Play_footsteps. We’ll be discussing Events and their action in the next chapter. What you need to do right now is to import a footstep sound for our Player Character and connect it to the Event that is being called by the game.
Select the Designer Layout. In the Project Explorer view, select the Audio tab.
The Audio tab of the Designer layout is where you’ll spend most of your time when designing your game’s soundscape. The audio tab has three different hierarchies that each provide unique Objects to accomplish various tasks related to triggering or manipulating how audio works in Wwise. With the exception of music, you’ll keep your sounds within a Work Unit within the Actor-Mixer Hierarchy. (Pic01 Actor-Mixer Hierarchy)
There are many different Objects that can be created within the Actor-Mixer Hierarchy. However, if you simply want to play a given audio file, this is accomplished via the Sound SFX Object.
It is also possible to play sounds through Sound Voice Objects; however, they are generally used for spoken dialogue as they have specific localization features used when releasing a game in multiple languages.
In the Object row, click the icon for the Sound SFX Object and name it platformer_foley_footstepGeneric_M01. (Pic02 Sound SFX)
The Object name appears in red. The red lettering represents that there isn’t an audio file associated with this SFX Object. You’ll need to add the audio file in just a moment, but before you go any further it’s important to understand that an SFX Object does not directly represent an audio file. It instead represents the channel that the audio file will play through. You can compare it to the idea of an audio track in a digital audio workstation (such as Audition). The track has various controls that manipulate the actual audio files that are stored on the audio track. Once you understand this, you’re ready to add the audio file to the Sound SFX Object.
Right-click the footstep_generic SFX Object and choose Import Audio Files, then click Add Files (Pic03 Add Files).
A dialog box opens prompting you to select the file you want to import. The file you’re going to import is a WAV file. Wave files are relatively large and you may well think that you’d first want to convert the file to something like an MP3 file or even reduce its sample rate or bit depth to reduce the amount of information you are bringing in. This is not the case. Actually, you want to import your best quality original into Wwise as a WAV file and don’t worry about the size at this time. The beauty of Wwise is that you can later decide how you want to optimize the file’s size before integrating into the game. In fact, Wwise has extensive features related to this. Think of it like a photographer wanting to always keep his 25 megapixel original and only worry about how to crop or compress the image based upon the need at the time he needs to send someone the image.
Navigate to the location of the sound files folder for this course provided by the tutor called Platformer_Soundfiles > Robot > foley, choose the File with the name platformer_foley_footstepGeneric_M01.wav and click Open.
You will see 6 different files for generic foosteps as delivered by the Sound Designer. At this point you will only use one of these files. It is labeled “M01”, which means it is a mono file with only one audio channel.
The Audio File Importer opens confirming which audio file you want to import to the SFX Object.
Click Import. (Pic04 Import)
The Audio File Importer window closes and you now see that the SFX Object has turned blue. The blue color indicates that an audio source, in this case a WAV file, is properly associated with the SFX Object and that the audio file is currently being referenced in its original imported format.
As you work, you may notice some Sound SFX Objects names are blue while others are white. The color communicates if the associated file has been optimized through a conversion process which usually happens when you generate a SoundBank which you’ll do later in this lesson. White Object names indicate that the conversion has already taken place, where blue Objects have yet to be converted. At this point, don’t worry if you see the color change from blue to white. You’ll learn more about optimization and the conversion process later on.
Now it’s time to test your sound and make sure it’s playing through your system.
Click the footstep_generic Sound SFX Object to make sure it’s selected.
Notice that the Property Editor view displays audio controls for the footstep sound such as a Volume Fader. Also, look in the Transport Control view and you’ll see the name footstep_generic. (Pic05 Volume + Transport) This indicates that when you press the play button, you’ll hear the sound as if played in the game.
The spacebar is the keyboard shortcut for the play button.
In the Transport Control view, click the play icon or press the spacebar.
You should hear the footstep sound. You’ll also notice that there’s an audio meter in the toolbar as well as a meter view on the right side of the layout showing you the level of playback in dBFS. (Pic06 Meter)
Save your project. (Pic07 Save your Project)
Saving your work is crucial! In some rare cases it can happen that Wwise crashes and it would be a shame if you loose some progress. Another reason for saving regularly is that if you change something in the Wwise project, say adding a new Event and you quickly want to implement it in your game engine, your Wwise projects needs to be saved in order to get the newly added Events displayed in the game engine. If your project needs saving, a little Asterisk symbol is displayed next to your project’s title and next to all Work Units the change occurs. (Pic07 Save your Project)