public SystemNotInitializedException(FMOD.RESULT result, string location) : base(String.Format("FMOD Studio initialization failed : {2} : {0} : {1}", result.ToString(), FMOD.Error.String(result), location)) { Result = result; Location = location; }
public BankLoadException(string path, FMOD.RESULT result) : base(String.Format("FMOD Studio could not load bank '{0}' : {1} : {2}", path, result.ToString(), FMOD.Error.String(result))) { Path = path; Result = result; }
protected static void FMODExec(FMOD.RESULT result, string trace) { Logger.Log("FMOD call " + trace + " returned " + result.ToString(), Helpers.LogLevel.Info); if (result != FMOD.RESULT.OK) { throw new MediaException("FMOD error! " + result + " - " + FMOD.Error.String(result)); } }
public static bool ERRCHECK(FMOD.RESULT result) { if (result != FMOD.RESULT.OK) { LogWarning("FMOD Error (" + result.ToString() + "): " + FMOD.Error.String(result)); } return (result == FMOD.RESULT.OK); }
public static void ERRCHECK(FMOD.RESULT result) { if (result != FMOD.RESULT.OK) { Debug.LogError("FMOD Error (" + result.ToString() + "): " + FMOD.Error.String(result)); } }