mixed-reality

Spatial sound in Unity

This page links to resources for spatial sound in Unity.

Spatializer options

Spatializer options for mixed reality applications include:

For new applications, we recommend the Microsoft Spatializer.

Enable spatialization

Use NuGet for Unity to install Microsoft.SpatialAudio.Spatializer.Unity and choose Microsoft Spatializer in your project’s audio settings. Then:

[!NOTE] If you get an error in Unity about not being able to load plugin Microsoft.SpatialAudio.Spatializer.Unity 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:

Distance-based attenuation

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:

Reverb

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.

Unity spatial sound examples

For examples of spatial sound in Unity, see:

Next Development Checkpoint

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:

[!div class=”nextstepaction”] Text

Or jump to Mixed Reality platform capabilities and APIs:

[!div class=”nextstepaction”] Shared experiences

You can always go back to the Unity development checkpoints at any time.

See also