/// ------------------------------------------------------------------------------------
        public bool CanMoveBoundary(TimeSpan boundaryToAdjust, int millisecondsToMove)
        {
            var secondsToMove = Math.Abs(millisecondsToMove) / 1000f;
            var boundary      = (float)boundaryToAdjust.TotalSeconds;

            return(millisecondsToMove < 0 ?
                   TimeTier.CanBoundaryMoveLeft(boundary, secondsToMove) :
                   TimeTier.CanBoundaryMoveRight(boundary, secondsToMove, (float)OrigWaveStream.TotalTime.TotalSeconds));
        }
Exemple #2
0
 public void CanBoundaryMoveLeft_MoveWillPutNewBoundaryAtZero_ReturnsFalse()
 {
     Assert.IsFalse(_tier.CanBoundaryMoveLeft(0.5f, 0.5f));
 }