System.DllNotFoundException: AudioPluginMSASpatializer assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) MagicLeap.Soundfield.Importer.IsInitialized()
at MagicLeap.Soundfield.Importer.Startup (System.Boolean isEditor) [0x00000] in <7726eb48ba4945b8bdf5e708419699e7>:0
at MagicLeap.Soundfield.MLListener.Startup (System.Boolean isEditor) [0x00000] in <7726eb48ba4945b8bdf5e708419699e7>:0
at MagicLeap.Soundfield.MLEditorImporterStartup..cctor () [0x00000] in <3a061d95bd9a42d1bf4ec0299ae73902>:0
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])
Plugins: Failed to load 'C:/Users/[Name]/MagicLeap/tools/unity/msa/v3.2.0-220906_0.53.3/Plugins/x86_64/AudioPluginMSASpatializer.dll' because one or more of its dependencies could not be loaded.
Weirdly enough, the developer who added the package to our project has everything working fine. But everyone else gets the following errors, and can't select MSA as spatializer plugin even tho we all are in the exact same project state using git (included MSA as a submodule).
What we've tried;
Adding the package manually from the hub
Checked that all files are actually in the project and correctly imported under packages (no git LFS issues - they are not just pointers)
@TheMunk Our audio team is suggesting that you need the VS C++ runtime installed (which likely wasn't installed by default for any number of reasons). You can do this by opening the Visual Studio Installer and selecting all the C++ runtime related things from the modules page.
In Windows you need to at least have the C/C++ runtime installed, no need for full blown visual studio. On Mac there is nothing needed, no dependencies.
It works after having installed all the C++ modules from Visual Studio Installer.
While I had the issue I had the following installed on the PC (and no VS):
Yes, okay. I wanted to make it work without VS (as previously mentioned possible --> here), as I am not using it otherwise. The modules are available only when installing one of the IDEs.
Hello I just wanted to chime in here. I was NOT able to get this working using the links in the MagicLeap documentation site, using the redistributable installs. I installed the following 3 things from that link:
None of those worked after installing, rebooting, and deleting Library folder in unity project.
After spending several hours trying to figure this out, and banging my head on the wall, I happened to come across this forum post, which I wasn't searching for properly because I was searching for Soundfield, not MSA, and then someone above mentioned Visual studio installer
I had to open the visual studio 2022 installer, hit Modify. I checked these two boxes:
And re-added the Soundfield package to Unity. Now it works.
I suggest updating the documentation to save people time in the future. This was a painful process
Thanks so much to the above posters for the information.
Welcome to the Magic Leap 2 Developer Forums. We are so grateful to have you here engaging with us.
Thank you for bringing this issue to our attention. We will be sure to update the documentation so that others do not run into this issue. Your contribution is greatly appreciated.