Give us as much detail as possible regarding the issue you're experiencing.
I'm trying to implement MSA Soundfield. After some initial setup issues I got it working. I switched branches in github and came back to the project a day later, and in a device build, there was no audio at all.
This error appeared in the logcat log:
Info | Unity | [MSA - Info] Plugin Hub initialization successful!! Processor Offload False
Error | Unity | NullReferenceException: Object reference not set to an instance of an object.
Error | Unity |
Error | Unity |
(the last two lines are empty lines)
After some poking around I tried adding an MLListener alongside the AudioListener in the scene, and suddenly everything started working and the above error went away. According to the documentation, I don't think this step should be needed, unless you want to use the advanced features. However, removing this component made the error come back in builds.
Note that spatial audio works in-editor without the component.
I'm not sure if it's relevant, but when adding the MLListener component, I get this happen in the editor in the console:
MonoScript is registered as both Editor and Runtime script!
Instance of MLListenerEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
[MSA] SDK/ZI audio is disabled, no compatible ML SDK found
Unity Editor version: 2022.3.8f1
ML2 OS version: 1.4.1
MLSDK version: 1.5.0
Host OS: (Windows/MacOS): windows 11
Error messages from logs (syntax-highlighting is supported via Markdown):