Beispiel #1
0
 public static FMOD.Studio.Bus GetBus(string path)
 {
     FMOD.Studio.Bus bus;
     if (StudioSystem.getBus(path, out bus) != FMOD.RESULT.OK)
     {
         throw new BusNotFoundException(path);
     }
     return(bus);
 }
Beispiel #2
0
 public static FMOD.Studio.Bus GetBus(String path)
 {
     FMOD.RESULT     result;
     FMOD.Studio.Bus bus;
     result = StudioSystem.getBus(path, out bus);
     if (result != FMOD.RESULT.OK)
     {
     }
     return(bus);
 }
Beispiel #3
0
 public static void MuteAllEvents(bool muted)
 {
     if (HasBanksLoaded)
     {
         FMOD.Studio.Bus masterBus;
         if (StudioSystem.getBus("bus:/", out masterBus) == FMOD.RESULT.OK)
         {
             masterBus.setMute(muted);
         }
     }
 }
 public static FMOD.Studio.Bus GetBus(String path)
 {
     FMOD.RESULT result;
     FMOD.Studio.Bus bus;
     result = StudioSystem.getBus(path, out bus);
     if (result != FMOD.RESULT.OK)
     {
         throw new BusNotFoundException(path);
     }
     return bus;
 }