Esempio n. 1
0
 public void ResumeBackgroundStopSecondaryTrack()
 {
     if (SecondaryBackground != null)
     {
         SecondaryBackground.Stop();
         PlayingList.Remove(SecondaryBackground);
         SecondaryBackground.Dispose();
         SecondaryBackground = null;
     }
     MainBackground.Resume();
     MainBackground.Pitch = BackgroundPitch;
 }
Esempio n. 2
0
 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;
 }