Mercurial > hg > svapp
comparison audioio/PlaySpeedRangeMapper.h @ 434:dee4aceb131c cxx11
Fixes to go with latest svcore
author | Chris Cannam |
---|---|
date | Wed, 04 Mar 2015 13:53:13 +0000 |
parents | 46b24009ce7a |
children | 45054b36ddbf |
comparison
equal
deleted
inserted
replaced
433:720f732e8082 | 434:dee4aceb131c |
---|---|
21 class PlaySpeedRangeMapper : public RangeMapper | 21 class PlaySpeedRangeMapper : public RangeMapper |
22 { | 22 { |
23 public: | 23 public: |
24 PlaySpeedRangeMapper(int minpos, int maxpos); | 24 PlaySpeedRangeMapper(int minpos, int maxpos); |
25 | 25 |
26 virtual int getPositionForValue(float value) const; | 26 virtual int getPositionForValue(double value) const; |
27 virtual int getPositionForValueUnclamped(float value) const; | 27 virtual int getPositionForValueUnclamped(double value) const; |
28 | 28 |
29 virtual float getValueForPosition(int position) const; | 29 virtual double getValueForPosition(int position) const; |
30 virtual float getValueForPositionUnclamped(int position) const; | 30 virtual double getValueForPositionUnclamped(int position) const; |
31 | 31 |
32 int getPositionForFactor(float factor) const; | 32 int getPositionForFactor(double factor) const; |
33 float getValueForFactor(float factor) const; | 33 double getValueForFactor(double factor) const; |
34 | 34 |
35 float getFactorForPosition(int position) const; | 35 double getFactorForPosition(int position) const; |
36 float getFactorForValue(float value) const; | 36 double getFactorForValue(double value) const; |
37 | 37 |
38 virtual QString getUnit() const; | 38 virtual QString getUnit() const; |
39 | 39 |
40 protected: | 40 protected: |
41 int m_minpos; | 41 int m_minpos; |