Use of undeclared identifier 'GetMyDSPDescription' Unity for iOS (XCODE)

I recently updated to Unity 2018.2.2f1 and am getting a new build failure from XCODE.

/Users/kurt/SoundWalk/iOS/Libraries/Plugins/FMOD/fmodplugins.cpp:32:47: Use of undeclared identifier ‘GetMyDSPDescription’

This is referencing this spot in code:
“result = FMOD5_System_RegisterDSP(system, GetMyDSPDescription(), nullptr);
if (result != 0)
{
return result;
}”

Any ideas on what’s up?
Thanks,
Kurt

Are you using any plugins?

1 Like

Yeah! I’m using Resonance Audio plugins within FMOD. I went through all of the steps to get it working within Unity and in iOS builds. Every since I upgraded to a newer Unity, it gives me this error.

Just to confirm, you have had it working before updating Unity and the Resonance plugin was also working?

1 Like

Yep! All was well and working until the update.

@Cameron Baron
I went back to my old version of Unity and it still doesn’t build properly so I’m starting to doubt that this is a Unity update related problem.

Did you have any ideas? I’m still stuck on this.

Did you have any ideas? I’m still stuck on this.

Thanks for your patience, in the fmodplugins.cpp make sure that only functions labeled ‘ResonanceAudio’ are being used. I have tested the plugin with a few different versions and they all work, just make sure to follow the steps in the documentation:
https://developers.google.com/resonance-audio/develop/fmod/game-engine-integration

Hello,

I have the same error message… and I suck in script ! so maybe before to go further can you confirm , or not, my uncommented script ( to build on IOs…) please:

struct FMOD_SYSTEM;
struct FMOD_DSP_DESCRIPTION;

extern “C” unsigned int FMOD5_System_RegisterDSP(FMOD_SYSTEM *system, const FMOD_DSP_DESCRIPTION *description, void *handle);

FMOD_DSP_DESCRIPTION* FMOD_ResonanceAudioListener_GetDSPDescription();
FMOD_DSP_DESCRIPTION* FMOD_ResonanceAudioSoundfield_GetDSPDescription();
FMOD_DSP_DESCRIPTION* FMOD_ResonanceAudioSource_GetDSPDescription();

extern “C” unsigned int FmodUnityNativePluginInit(FMOD_SYSTEM *system)
{
unsigned int result = 0;

/*

This function is invoked on iOS and tvOS after the system has been
initialized and before any banks are loaded. It can be used to manually
register plugins that have been statically linked into the executable.

Each plugin will require a separate call to FMOD_System_RegisterDSP.
The DSP_DESCRIPTION argument is the same as what is returned by 
FMODGetDSPDescription when building a dynamic plugin.

*/

/*
result = FMOD5_System_RegisterDSP(system, GetMyDSPDescription(), nullptr);
if (result != 0)
{
    return result;
}
*/

/* Uncomment this next section to use the Resonance Audio plugin on iOS */

uint32_t result = 0;
result = FMOD5_System_RegisterDSP(system, FMOD_ResonanceAudioListener_GetDSPDescription(), nullptr);
if (result != 0)
{
  return result;
}
result = FMOD5_System_RegisterDSP(system, FMOD_ResonanceAudioSoundfield_GetDSPDescription(), nullptr);
if (result != 0)
{
  return result;
}
result = FMOD5_System_RegisterDSP(system, FMOD_ResonanceAudioSource_GetDSPDescription(), nullptr);
if (result != 0)
{
  return result;
}


return result;

}

unity 2019.2.0f1
fmod 2.01.01
xcode 10.3

Thank’s
Seb

The only mention of GetMyDSPDescription() in that is commented out.

It would be best to start a new thread and attach the output logs from Unity.