Mercurial > hg > svapp
diff audioio/PlaySpeedRangeMapper.h @ 466:45054b36ddbf
Make the play-speed dial settings much easier to understand and use (fixes #1328)
author | Chris Cannam |
---|---|
date | Mon, 13 Jul 2015 14:39:41 +0100 |
parents | dee4aceb131c |
children |
line wrap: on
line diff
--- a/audioio/PlaySpeedRangeMapper.h Wed Jul 01 15:53:54 2015 +0100 +++ b/audioio/PlaySpeedRangeMapper.h Mon Jul 13 14:39:41 2015 +0100 @@ -21,8 +21,11 @@ class PlaySpeedRangeMapper : public RangeMapper { public: - PlaySpeedRangeMapper(int minpos, int maxpos); + PlaySpeedRangeMapper(); + int getMinPosition() const { return m_minpos; } + int getMaxPosition() const { return m_maxpos; } + virtual int getPositionForValue(double value) const; virtual int getPositionForValueUnclamped(double value) const;