Giter VIP home page Giter VIP logo

Comments (4)

MikeChemi avatar MikeChemi commented on July 19, 2024

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?

from spatialaudio-unity.

ashtat avatar ashtat commented on July 19, 2024

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!

from spatialaudio-unity.

ashtat avatar ashtat commented on July 19, 2024

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?

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

from spatialaudio-unity.

Ziugy avatar Ziugy commented on July 19, 2024

I haven't had time to double back to this yet. When you say:

non-directional wet path reverb signal only

How will that effect the output we're using?

This caveat, gotcha, or additional steps (check Spatialize Post Effects when using GetOutputData/GetSpecturmData) should at least be added in this documentation: https://docs.microsoft.com/en-us/windows/mixed-reality/spatial-sound-in-unity

from spatialaudio-unity.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.