Exemplo n.º 1
0
 static void Update()
 {
     if (sFMODSystem != null && sFMODSystem.isValid())
     {
         ERRCHECK(sFMODSystem.update());
     }
 }
Exemplo n.º 2
0
 private void CheckInitResult(RESULT result, string cause)
 {
     if (result != 0)
     {
         if (studioSystem.isValid())
         {
             studioSystem.release();
             studioSystem.clearHandle();
         }
         throw new SystemNotInitializedException(result, cause);
     }
 }
Exemplo n.º 3
0
    void OnApplicationPause(bool pauseStatus)
    {
        if (system != null && system.isValid())
        {
            FMOD.Studio.UnityUtil.Log("Pause state changed to: " + pauseStatus);

            FMOD.System sys;
            ERRCHECK(system.getLowLevelSystem(out sys));

            if (sys == null)
            {
                FMOD.Studio.UnityUtil.LogError("Tried to suspend mixer, but no low level system found");
                return;
            }

            if (pauseStatus)
            {
                ERRCHECK(sys.mixerSuspend());
            }
            else
            {
                ERRCHECK(sys.mixerResume());
            }
        }
    }
Exemplo n.º 4
0
 private void Update3DAttributes()
 {
     FMOD.Studio.System system = FMOD_StudioSystem.instance.System;
     if (system != null && system.isValid())
     {
         FMOD.Studio.ATTRIBUTES_3D attributes = UnityUtil.to3DAttributes(base.gameObject, this.cachedRigidBody);
         this.ERRCHECK(system.setListenerAttributes(0, attributes));
     }
 }
Exemplo n.º 5
0
 public bool IsValid()
 {
     return(_system.isValid());
 }