Describe the bug
Output and spectrum data do not exist while running on HoloLens 2.
Sample of how we're using the two methods:
audioSource.GetOutputData(audioSamples, 0);
audioSource.GetSpectrumData(audioSpectrum, 0, FFTWindow.BlackmanHarris);
To reproduce
Steps to reproduce the behavior:
- Have an
AudioSource that's playing looping audio with all spatializer settings enabled.
- Write a simple script that computes DB, like so: https://answers.unity.com/questions/157940/getoutputdata-and-getspectrumdata-they-represent-t.html
- Verify this works with MS HRTF Spatializer on HoloLens 2.
- Swap to Microsoft Spatializer and redeploy.
- See that the results now on HoloLens 2 are not consistent.
Expected behavior
Behavior should be consistent with MS HRTF Spatializer and what's being seen in the Unity editor.
Your setup
- Unity Version 2019.2.21f1
- Microsoft Spatializer v1.0.0
Target platform