The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
What is the best format for sound designer to provide audio for spatial sound in Unity?
From reading the docs about hololens audio and Unity audio, I get the impression that I when I use spatial sound for having music/sounds emanate from my holograms, that there is no point in providing audio assets in stereo. What is best practice for importing files from my DAW? As mono at a 48000Hz sample rate (with unity compressing these as ogg/vorbis)? I presume that this makes the best balance between memory and cpu. Also, does the Unity mixer add value when using spatial sound? or should I just attach passages to the holograms as audiosources and let spatial sound processing manage the rest? What is the presumed signal flow in the Hololens?
Best Answer
-
DavidKlineMS mod
@rhenninger,
As you mentioned, Spatial Sound can only spatialize mono files. If your source file is in stereo, you can tell Unity to force it to mono in the import settings. You need not ship 48kHz if your sound source does not need that high of a sample rate (ex: up to 24kHz). For example, if the highest frequency in your data is 11kHz, you can use a 22kHz sample rate.The Unity mixer can add significant value depending on your application. I have used the mixer to group sound effects separate from my application's primary audio sources. By doing this, I was able to adjust the max gain for each group without having to set the values for each audio source.
Thanks!
David5
Answers
@rhenninger,
As you mentioned, Spatial Sound can only spatialize mono files. If your source file is in stereo, you can tell Unity to force it to mono in the import settings. You need not ship 48kHz if your sound source does not need that high of a sample rate (ex: up to 24kHz). For example, if the highest frequency in your data is 11kHz, you can use a 22kHz sample rate.
The Unity mixer can add significant value depending on your application. I have used the mixer to group sound effects separate from my application's primary audio sources. By doing this, I was able to adjust the max gain for each group without having to set the values for each audio source.
Thanks!
David