-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AudioSource GetOutputData and GetSpectrumData Issues #13
Comments
Hi @Ziugy , I just tried this out on my PC. I was able to repro the issue you reported. I belive that if you check the "Spatialize Post Effects" checkbox on the Audio Source component, you should see that the GetOutputData and GetSpectrumData calls are returning proper values again. Does this work for you as well? |
Hi @Ziugy, this behavior stems from the architectural difference between the two plugins. In MS-HRTF plugin spatial audio signal processing occurs within the Unity audio graph itself using the CPU. This new plugin, on the other hand, relies on Windows platform APIs to enable hardware offload where the spatial audio processing is handled by the OS and that signal cannot make it's way back into the Unity audio graph. It's a trade-off with hardware offload where you get a higher source count at a lower CPU cost but you don't have access to the spatialized audio signal. Hope this answers your question! |
@MikeChemi @Ziugy Note that even with "Spatialize Post Effects" the signal available through GetOutputData and GetSepctrumData will be the non-directional wet path reverb signal only. Dry-path HRTF audio data does not make its way back into the Unity audio engine so there will still be a difference in behavior between MS HRTF and this plugin in this scenario. |
I haven't had time to double back to this yet. When you say:
How will that effect the output we're using? This caveat, gotcha, or additional steps (check Spatialize Post Effects when using |
Describe the bug
Output and spectrum data do not exist while running on HoloLens 2.
Sample of how we're using the two methods:
To reproduce
Steps to reproduce the behavior:
AudioSource
that's playing looping audio with all spatializer settings enabled.Expected behavior
Behavior should be consistent with MS HRTF Spatializer and what's being seen in the Unity editor.
Your setup
Target platform
The text was updated successfully, but these errors were encountered: