Mercurial > hg > svapp
diff audioio/PlaySpeedRangeMapper.cpp @ 330:46b24009ce7a
Unclamped
author | Chris Cannam |
---|---|
date | Thu, 06 Feb 2014 15:31:57 +0000 |
parents | 068235cf5bf7 |
children | dee4aceb131c |
line wrap: on
line diff
--- a/audioio/PlaySpeedRangeMapper.cpp Thu Dec 12 15:20:14 2013 +0000 +++ b/audioio/PlaySpeedRangeMapper.cpp Thu Feb 06 15:31:57 2014 +0000 @@ -34,6 +34,13 @@ } int +PlaySpeedRangeMapper::getPositionForValueUnclamped(float value) const +{ + // We don't really provide this + return getPositionForValue(value); +} + +int PlaySpeedRangeMapper::getPositionForFactor(float factor) const { bool slow = (factor > 1.0); @@ -65,6 +72,13 @@ } float +PlaySpeedRangeMapper::getValueForPositionUnclamped(int position) const +{ + // We don't really provide this + return getValueForPosition(position); +} + +float PlaySpeedRangeMapper::getValueForFactor(float factor) const { float pc;