public void ResumeBackgroundStopSecondaryTrack() { if (SecondaryBackground != null) { SecondaryBackground.Stop(); PlayingList.Remove(SecondaryBackground); SecondaryBackground.Dispose(); SecondaryBackground = null; } MainBackground.Resume(); MainBackground.Pitch = BackgroundPitch; }
public void Reset() { MainBackground.Stop(); MainBackground.Dispose(); if (SecondaryBackground != null) { SecondaryBackground.Stop(); SecondaryBackground.Dispose(); SecondaryBackground = null; } PlayingList.Clear(); PoolList.Clear(); InitializeSoundPool(); MainBackground = GetAndPlay(SoundType.Background, true); BackgroundPitch = 0; MainBackground.Pitch = BackgroundPitch; }