MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

[MRTK3] Non-Canvas Buttons: Audio spatializer warning messages + decreasing volume on multiple press

Open cre8ivepark opened this issue 3 years ago • 3 comments

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:

  1. Open a scene that contains PressableButton prefabs (non-canvas)
  2. Run the scene
  3. Check console messages

2022-09-07 15_54_51

cre8ivepark avatar Sep 07 '22 22:09 cre8ivepark

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.

david-c-kline avatar Sep 07 '22 23:09 david-c-kline

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).

david-c-kline avatar Sep 07 '22 23:09 david-c-kline

@davidkline-ms , is there still no plan to fix this, other than wait for Unity to change this behavior?

Zee2 avatar Sep 12 '22 23:09 Zee2

This is associated with #11177. Any updates here @davidkline-ms ?

Zee2 avatar Nov 18 '22 22:11 Zee2

Related to #11177 ?

AMollis avatar Mar 20 '23 18:03 AMollis

@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:

  1. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6897
  2. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10744
  3. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10979
  4. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/11176
  5. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/11177

AMollis avatar Mar 20 '23 18:03 AMollis

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

marlenaklein-msft avatar Mar 24 '23 17:03 marlenaklein-msft