Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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));
     }
 }
Ejemplo n.º 4
0
			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);
			}
Ejemplo n.º 5
0
 public static void ERRCHECK(FMOD.RESULT result)
 {
     if (result != FMOD.RESULT.OK)
     {
         Debug.LogError("FMOD Error (" + result.ToString() + "): " + FMOD.Error.String(result));
     }
 }