Giter VIP home page Giter VIP logo

spatialaudio-unity's Issues

AudioSource GetOutputData and GetSpectrumData Issues

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

Missing mainfast?

When I try to add the code into unity via package manager and the git link I receive this error

[Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/microsoft/spatialaudio-unity.git]:
[https://github.com/microsoft/spatialaudio-unity.git] does not point to a valid package. No package manifest was found. [NotFound].

I'm using Windows 11 and unity 2021.2.19

Incorrect plugin import settings for standalone x86_64

In the latest version 2.0.37 the import settings for x86_64 HrtfDsp.dll are not configured correctly - x64 should be checked in Platform settings for standalone builds. At the moment both available options (x86, x64) are unchecked.

UWP binaries are built incorrectly

CMake project generation needs to take the right flags for UWP configs. Right now UWP plugins fail to load because of non-UWP CRT linkage.

Sample is missing NuGet binaries

The sample is missing NuGet for Unity binaries, so doesn't load the Nuget packages for MRTK and the spatializer on project start.

package update

Will there be a package update in the near future or is this project dead?

I reported an issue over a year ago and it got closed with the notice that it will be fixed with the next update, but this never happened (#83).

Can't change spatial sound format once activated

When using the Microsoft Spatializer on desktop, I sometimes want to change my spatial sound mode between Windows Sonic, Dolby Atmos, and DTS. I've seen that once I play any audio in one of these modes, I need to close and reopen Unity to change to another mode. For example:
Have spatial sound mode set to Windows Sonic for Headphones.
Play some spatial audio in Unity. Works!
Change spatial sound mode to Dolby Atmos for Home Theater.
Play some spatial audio in Unity. Doesn't work.
Close Unity.
Open Unity.
Play some spatial audio in Unity. Works!

It would be nice if the Microsoft Spatializer was updated to handle these mode switches automatically without needing to restart Unity.

Spatial Sound in Unity Microsoft.SpatialAudio.Spatializer.Unity Requires Dependencies

I think the documentation [here: https://docs.microsoft.com/en-us/windows/mixed-reality/spatial-sound-in-unity] should be updated to include any required dependencies that the user needs to install. I thought this plugin was independent.

Got this error:
Plugins: Failed to load 'Assets/Packages/Microsoft.SpatialAudio.Spatializer.Unity.1.0.0/Plugins/x86_64/AudioPluginMicrosoftSpatializer.dll' because one or more of its dependencies could not be loaded.

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.