O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

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

Action makes sound

Now, before we get into the core of the new ApplicationManager, we need to add another component to the AppManager object.

While I like the atmospheric sounds that play when the game begins, it needs something else for when the ball is thrown. Let's add that now:

  1. With AppManager selected, click on AddComponent | Audio | AudioSource.
  2. Get the skee.wav file from the downloads package and put it in your Sounds directory.
  3. Drag the skee.wav file to the AudioClip field of the AudioSource component and drop it.
  4. Then, change the Spatial Blend from 2D to 3D.

With the new audio source added to the object, we now need to get a reference to the Application Manager component. How are we going to do that? They are on the same object. ...

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