Training
Module
Activate spatial audio for your HoloLens 2 application - Training
Activate spatial audio for your HoloLens 2 application
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This page links to resources for spatial sound in Unity.
Spatializer options for mixed reality applications include:
For new applications, we recommend the Microsoft Spatializer.
Use the Mixed Reality Feature Tool to download the latest version of the Microsoft Spatializer feature. Then follow the step-by-step instructions for enabling the plugin in your Unity project.
Once the spatialization and mixer plugins are in place, to enable spatial audio for a sound source:
Note
If you get an error in Unity about not being able to load Microsoft Spatializer plugin because one of its dependencies is missing, check that you have the latest version of the Microsoft Visual C++ Redistributable installed on your PC.
For more information, see:
Unity's default distance-based decay has a minimum distance of 1 meter and a maximum distance of 500 meters, with a logarithmic rolloff. These settings may work for your scenario, or you may find that sources attenuate too quickly or too slowly. For more information, see:
The Microsoft Spatializer disables post-spatializer effects by default. To enable reverb and other effects for spatialized sources:
See Chapter 5 of the spatializer tutorial for details.
For examples of spatial sound in Unity, see:
If you're following the Unity development journey we've laid out, you're in the midst of exploring the Mixed Reality core building blocks. From here, you can continue to the next building block:
Or jump to Mixed Reality platform capabilities and APIs:
You can always go back to the Unity development checkpoints at any time.
Training
Module
Activate spatial audio for your HoloLens 2 application - Training
Activate spatial audio for your HoloLens 2 application