In fmod.cs in the fmod studio unity plugin, there is the following code:
#if !UNITY_IPHONE || UNITY_EDITOR
public class Memory
{
public static RESULT GetStats(ref int currentalloced, ref int maxalloced)
{
return FMOD_Memory_GetStats(ref currentalloced, ref maxalloced, 1);
}
#region importfunctions
[DllImport (VERSION.dll)]
private static extern RESULT FMOD_Memory_GetStats(ref int currentalloced, ref int maxalloced, int blocking);
#endregion
}
#endif
Why is the “#if !UNITY_IPHONE” there? The libfmodstudiounityplugin.a seems to have it:
0000c5e4 t _FMOD_Memory_GetStats
Is this merely an oversight, or is there a reason why this is disabled? If so, what is the correct way to determine the amount of memory being used by FMOD at any given point on an IOS device? We would like to gather this data for telemetry purposes.