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); }
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); }
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; }