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