MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
[MRTK3] Non-Canvas Buttons: Audio spatializer warning messages + decreasing volume on multiple press
Describe the bug
On Non-canvas Buttons
- Warning message + audio effect volume decreases on multiple press.
- Message: Audio source failed to initialize audio spatializer. Please check that the project audio settings and make sure that the selected spatializer is compatible with the target.
To reproduce
Steps to reproduce the behavior:
- Open a scene that contains PressableButton prefabs (non-canvas)
- Run the scene
- Check console messages

The repeated warnings appear to be an issue in the Unity Engine. Whenever a sound is played, the engine appears to confirm the spatializer works on the current platform (and settings). If not, it displays this warning.
The volume decrease is likely due to the platform (ex: Windows) and/or the project not being properly configured. If you are using the Microsoft Spatializer, the configuration settings in the project will be different.
This page describes the steps that are needed to be performed if using Microsoft Spatializer 2.x (please note that while the documentation shows 'Project Acoustics', the steps are the same).
@davidkline-ms , is there still no plan to fix this, other than wait for Unity to change this behavior?
This is associated with #11177. Any updates here @davidkline-ms ?
Related to #11177 ?
@marlenaklein-msft there are 5 issues related to spatial audio, Can you help provide more context on these issues, and resolve any duplicates?
The spatial audio issues area:
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6897
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10744
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10979
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/11176
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/11177
After setting the mixer in audio source, this does not appear to repro.
Closing this and consolidating spatial audio bugs into three issues: Add Warning for Missing Audio Mixer (Spatial Audio) Updating Sample Scenes with Mixer for Spatial Audio Documentation for Spatial Audio