Hi, I am usign fmod unity plugin and it works great for Android and iOS but it has some incompatibilities with windows phone.
FMOD is using some obsolete methods like System.IO.File.ReadLines and Encoding.UTF8.GetString.
In Fmod.Listener.Initialize() i replaced :
//var bankList = System.IO.File.ReadAllLines(bankListPath);
ArrayList lines = new ArrayList();
using(StreamReader sr = new StreamReader(bankListPath, Encoding.UTF8))
while((line = sr.ReadLine()) != null)
var bankList = (String) lines.ToArray(typeof(String));
In SOUND_INFO.getname i replaced:
In FmodStudio -> MarshallingHelper.stringFromNativeUtf8 i replace again:
and there are other places that GetString needs to be replaced…
But after this I could not build the apk for Windows phone because it failed to load some FMOD dlls.
After checking this page http://126.96.36.199/download/ I realized that Unity Integration is for Windows/Mac/Linux/iOS/Android and doesn’t support Windows Phone.
I updated to the last version of the unity plugin (Version 1.05.00) and now it throws this exception:
Error building Player: Exception: Error: type
System.Runtime.InteropServices.ICustomMarshaler doesn’t exist in target framework. It is referenced from Assembly-CSharp-firstpass.dll at FMOD.UTF8Marshaler.
System.Runtime.InteropServices.ICustomMarshaler doesn’t exist in target framework. It is referenced from Assembly-CSharp-firstpass.dll at System.Runtime.InteropServices.ICustomMarshaler FMOD.UTF8Marshaler::GetInstance(System.String).
… but I can’t get arround this issue…
Do you have a workarround for this, or are you going to release an update soon that combines Unity with Windos Phone?