# HG changeset patch # User Chris Cannam # Date 1391700717 0 # Node ID 46b24009ce7a633a5150592720e192481e5adbb6 # Parent c837368b1faf2cd3727242099eefec0a18deb91f Unclamped diff -r c837368b1faf -r 46b24009ce7a audioio/PlaySpeedRangeMapper.cpp --- 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; diff -r c837368b1faf -r 46b24009ce7a audioio/PlaySpeedRangeMapper.h --- a/audioio/PlaySpeedRangeMapper.h Thu Dec 12 15:20:14 2013 +0000 +++ b/audioio/PlaySpeedRangeMapper.h Thu Feb 06 15:31:57 2014 +0000 @@ -24,7 +24,10 @@ PlaySpeedRangeMapper(int minpos, int maxpos); virtual int getPositionForValue(float value) const; + virtual int getPositionForValueUnclamped(float value) const; + virtual float getValueForPosition(int position) const; + virtual float getValueForPositionUnclamped(int position) const; int getPositionForFactor(float factor) const; float getValueForFactor(float factor) const;