public new bool InitializeSound(CameraListenerBase listener, FreeSL.FSL_SOUND_SYSTEM ss) { if (Instance.Initialized && ss == soundSystem) { this.SetListener(listener); return(true); } if (Instance.Initialized) { this.ambientSounds.Clear(); Instance.Destroy(); } bool ok = base.InitializeSound(listener, ss); //InitializeSound sound system if (ok) { soundSystem = ss; StopAmbientMusic(); currentMusic = null; ambientSound = null; SoundManager3D.Instance.UpdaterRunning = true; return(true); } return(false); }
public static bool CreateSoundSystem(CameraListenerBase listener, FreeSL.FSL_SOUND_SYSTEM ss) { return(SoundManager3D.Instance.InitializeSound(listener, ss)); }