Forum Discussion

mysticflute's avatar
mysticflute
Honored Guest
5 months ago

Meta XR Audio Plugin + FMOD + Unity

I'm trying to get the Meta XR Audio plugin working, following along with the guide at https://developers.meta.com/horizon/documentation/unity/meta-xr-audio-sdk-fmod-req-setup/ 

I've been able to get it working in FMOD Studio itself, but I'm having issues with the Unity setup. The Meta docs state:

For any Unity Project you hope integrate the Meta plugin into, you must also copy the Meta libraries into the Unity project.

So I've copied the files such as `libMetaXRAudioFMOD.so`, `MetaXRAudioFMOD.dll` and `MetaXRAudioFMOD.bundle` from the meta package to the respective folders in my Unity project (e.g., Assets/Plugins/FMOD/platforms/mac/lib).

It's not working though on my Mac, as FMOD is not able to read the .bundle file. Specifically it says ERR_FILE_NOTFOUND when it tries to load the file, although I've verified it's at the right location.

I posted about it on the FMOD forums and the support there said that the `.bundle` file is not code signed, and it might need to be in order to load. I tried Steam Audio library, and I noticed their .bundle file is code signed and it loads fine. Perhaps this is the issue with the Meta package, or perhaps it's another issue. Either way FMOD support suggested that the problem is with the Meta package.

I would appreciate if someone from Meta could take a look at this, and if anyone else has successfully gotten Meta XR Audio SDK + FMOD + Unity working.

5 Replies

  • h.taylor's avatar
    h.taylor
    Community Manager

    Hey mysticflute, 

    I'm happy to do some digging to figure out what might be causing the 404 you're seeing. First, which Unity version are you working with? The method for integrating the FMOD and Meta XR Audio SDK are different based on your Unity version. 

    Also, out of curiosity, had you already incorporated the Meta XR Audio SDK package into your Unity project prior to integrating FMOD? If so, you'll need to uninstall the package before integrating FMOD into your project. 

  • Thanks! Here are my version numbers:

    • Unity v6000.2.6f2
    • Meta XR Audio SDK FMOD 81.0
    • FMOD Studio v2.03.09
    • FMOD for Unity v2.03.10

     

    I haven't added the package from the Unity asset store, and this is working on a fresh new project using the basic Universal 3D template.

    • h.taylor's avatar
      h.taylor
      Community Manager

      Hey mysticflute! 

      I just heard back from our product team that they saw the same issue on their end and were able to work around it by using the libMetaXRAudioFMOD.dylib rather than the .bundle. We're going to continue to look into it to see if we can get the .bundle working, but in the meantime, could you try using the .dylib and let me know if that solves your issue? 

      We're also going to update the docs you linked above to call out that that folks on macOS should use the .dylib rather than the .bundle, at least for the time being. Thanks so much for calling this out! 

      I really appreciate your patience with this issue. Please let me know if there's anything else I can do to help out! 

      Henry

  • Any update on this issue? I have checked out the latest meta xr audio plugin, the bundle is still not signed.

  • This looks like a macOS issue rather than Unity or FMOD. On macOS, .bundle plugins must be code signed or FMOD will fail to load them (often showing ERR_FILE_NOTFOUND even if the path is correct). Since Steam Audio works and its bundle is signed, the unsigned Meta XR Audio .bundle is likely the problem.

    You can confirm with codesign -dv MetaXRAudioFMOD.bundle or try temporarily self-signing it to test. If that fixes it, Meta likely needs to ship a properly signed macOS bundle.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions