O'Reilly logo

Mastering Oculus Rift Development by Jack Donovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing 2D stereo audio

We'll begin by implementing the simplest form of game audio: two-dimensional stereophonic audio. We'll start with menu sound effects and then move onto music and classic ambient soundscapes.

The first thing we need to do is import some audio files into the project. Find the ButtonClick.wav and the ButtonHover.wav files included with this chapter and drag them into a new folder in your Project window called Audio. You'll know that they're valid audio files from their yellow waveform icon:

Implementing 2D stereo audio

Note

Files with the .wav extension are one of the many supported audio file types in Unity. You can also import .mp3, .ogg, .aif,

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required