Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

ios duplicate method found with fmod

Discussion in 'iOS and tvOS' started by dave_mm0, Mar 28, 2013.

  1. dave_mm0

    dave_mm0

    Joined:
    Feb 8, 2013
    Posts:
    26
    I am using an fmod plugin for Unity3D. Compiling to Windows and OSX is fine because I can dynamically load the DLL/dylib.
    The problem comes when I compile for iOS. I use

    [DllImport("__Internal")]

    Because iOS requires statically linked libraries. When I compile though I get a

    SystemException: Duplicate native method found : FMOD_System_CreateSound. Please check your source carefully.

    I am quite sure I don't duplicate the symbol. I think this might be due to the fact that Unity imports FMODs itself and that the two might be colliding... Is there a way around this? thx!

    As always, I will be happy to provide any additional details!
     
  2. dave_mm0

    dave_mm0

    Joined:
    Feb 8, 2013
    Posts:
    26
  3. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Unity uses FMOD internally, that's why you are having troubles linking it once again. Why you need FMOD as plugin?
     
  4. dave_mm0

    dave_mm0

    Joined:
    Feb 8, 2013
    Posts:
    26
    I am using FMOD as a plugin for a few reasons. I want access to the full functionality, I want to avoid Unity's Audio latency problem, but mostly, I need to load external MP3s at runtime.