예제 #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();
        }
예제 #2
0
 public virtual void ContinueToPlay()
 {
     _inPause = false;
     TrackToPlay.Play();
     TrackToStop.Play();
 }