//------------------------------------------------------------------------------ // Private Functions: //------------------------------------------------------------------------------ #region eventHandlers private void OnSetAmbientTrack(object sender, GameEventArgs e) { string ambientTrackName = e.Get <string>(); // Set the mood if (ambientTrack.isValid()) { AudioManager.ErrorCheck(ambientTrack.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT)); } if (ambientTrackName != null) { ambientTrack = PlayEvent(ambientTrackName, 0.5f); } }
private void OnSetBackgroundTrack(object sender, GameEventArgs e) { string backgroundTrackName = e.Get <string>(); // Play that funky muzak if (backgroundTrack.isValid()) { AudioManager.ErrorCheck(backgroundTrack.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT)); } if (backgroundTrackName != null) { backgroundTrack = PlayEvent(backgroundTrackName, 0.5f); } }
private void OnLoadAudioBank(object sender, GameEventArgs e) { LoadBank(e.Get <string>()); }