Unity

That was a lot of work. Even if the people at SharpDX had managed to include the necessary wrappers, we still would have had to do a lot to get a sound to come from a designated place.

Fortunately, this is much easier to do in Unity. We just need to add one component, set a couple of properties, and make some global changes to the settings of the project. I will show you all these steps right now, and I will do that in our RockOn app.

We have a bunch of guitars that we can place in our room. I think it would be nice if each one of them makes a guitar sound every time we place it, just as if the user were not careful enough when putting the expensive instrument on the stage.

To begin, we need a sound. Again, there are tons of websites ...

Get Microsoft HoloLens Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.