Esempio n. 1
0
        public virtual void StartTransition(int duration)
        {
            if (TrackToPlay != null && duration > TrackToPlay.Lenght.TotalSeconds)
            {
                throw new ArgumentException("Duration is too long for the track length", "duration");
            }

            StepNumber   = 2 * duration;
            ActuelSetp   = 0;
            TargetVolume = TrackToStop.Volume;
            PrepareToStart();

            if (TrackToPlay != null)
            {
                TrackToPlay.Play();
            }
            DoStep();
        }
Esempio n. 2
0
 public virtual void CancelTransition()
 {
     TrackToPlay.Dispose();
 }
Esempio n. 3
0
 public virtual void ContinueToPlay()
 {
     _inPause = false;
     TrackToPlay.Play();
     TrackToStop.Play();
 }
Esempio n. 4
0
 public virtual void Pause()
 {
     _inPause = true;
     TrackToPlay.Pause();
     TrackToStop.Pause();
 }