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