Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

AudioSource GetOutputData and GetSpectrumData Issues #13

@Ziugy

Description

@Ziugy

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:

  1. Have an AudioSource that's playing looping audio with all spatializer settings enabled.
  2. Write a simple script that computes DB, like so: https://answers.unity.com/questions/157940/getoutputdata-and-getspectrumdata-they-represent-t.html
  3. Verify this works with MS HRTF Spatializer on HoloLens 2.
  4. Swap to Microsoft Spatializer and redeploy.
  5. 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

  • HoloLens 2
  • WMR immersive

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions