Core API: System.init not implemented

#1

I interested in using the core API in Unity with FMOD 2.0. However, if I create a system object and try to initiate it, I get a notImplementedExeception. Does this mean I need to wait for FMOD 2.0 to be finished and I can’t use the core API right now, or is there another way to initiate the system object?

Here is my code:

//Create and initialise system object
FMOD.System system = new FMOD.System();

result = FMOD.Factory.System_Create(out system);
Debug.Log(result.ToString());

system.init(512, FMOD.INITFLAGS.NORMAL, FMOD.OUTPUTTYPE.AUTODETECT);

Which outputs “OK”, then outputs “NotImplementedException: The method or operation is not implemented.”

Is this not the correct way to initiate a system object, or do I need to wait for it to be implemented in FMOD 2.0?

Thanks in advance

0 Likes

#2

It looks like what you are trying to do should work fine, although you may need to cast the OutputType as an IntPtr.

Are you able to share the callstack from the error?

0 Likes

#3

I casted OutputType as an IntPtr and it worked just great. Thank you so much for the help :smiley: !

Here’s my code for anyone else having this problem:

FMOD.RESULT result;

//Create and initialise system object
FMOD.System system = new FMOD.System();

result = FMOD.Factory.System_Create(out system);
Debug.Log("Create core system: " + result.ToString());

system.init(512, FMOD.INITFLAGS.NORMAL (System.IntPtr)FMOD.OUTPUTTYPE.AUTODETECT);
0 Likes