public void StopActiveSound() { if (this.activeSound.SoundProfileType == SoundProfileType.Music) { SoundLib.StopMusic(); this.IsPlay = false; } else if (this.activeSound.SoundProfileType == SoundProfileType.SoundEffect) { SoundLib.StopAllSoundEffects(); } else if (this.activeSound.SoundProfileType == SoundProfileType.Song) { SoundLib.StopAllSongs(); } else if (this.activeSound.SoundProfileType == SoundProfileType.Sfx) { SoundLib.StopSfxSound(this.activeSound.SoundIndex); } else if (this.activeSound.SoundProfileType == SoundProfileType.MovieAudio) { SoundLib.StopMovieMusic(this.activeSound.Name, true); } }