コード例 #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();
 }