public void SetSound(string package, string soundFile, bool loop) { RemoveSound(); if (System.IO.File.Exists(package) == false) { throw new System.IO.FileNotFoundException("The sound file at : " + soundFile + " does not exist."); } FreeSL.fslLoadSoundFromZip(package, soundFile); LoopSound(loop); _withSound = true; }
public void SetSound(string package, string soundFile, bool loop) { RemoveSound(); if (File.Exists(package) == false) { throw new FileNotFoundException("The sound file at : " + soundFile + " does not exist."); } lock (SoundManager3D.Instance.LockSync) { FreeSL.fslLoadSoundFromZip(package, soundFile); LoopSound(loop); } _withSound = true; }