comparison audio/PlaySpeedRangeMapper.h @ 644:6fd0ebfd2bbe

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:25:09 +0000
parents 26a0cb8335e3
children
comparison
equal deleted inserted replaced
643:713b9a6b284a 644:6fd0ebfd2bbe
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _PLAY_SPEED_RANGE_MAPPER_H_ 16 #ifndef SV_PLAY_SPEED_RANGE_MAPPER_H
17 #define _PLAY_SPEED_RANGE_MAPPER_H_ 17 #define SV_PLAY_SPEED_RANGE_MAPPER_H
18 18
19 #include "base/RangeMapper.h" 19 #include "base/RangeMapper.h"
20 20
21 class PlaySpeedRangeMapper : public RangeMapper 21 class PlaySpeedRangeMapper : public RangeMapper
22 { 22 {
24 PlaySpeedRangeMapper(); 24 PlaySpeedRangeMapper();
25 25
26 int getMinPosition() const { return m_minpos; } 26 int getMinPosition() const { return m_minpos; }
27 int getMaxPosition() const { return m_maxpos; } 27 int getMaxPosition() const { return m_maxpos; }
28 28
29 virtual int getPositionForValue(double value) const; 29 int getPositionForValue(double value) const override;
30 virtual int getPositionForValueUnclamped(double value) const; 30 int getPositionForValueUnclamped(double value) const override;
31 31
32 virtual double getValueForPosition(int position) const; 32 double getValueForPosition(int position) const override;
33 virtual double getValueForPositionUnclamped(int position) const; 33 double getValueForPositionUnclamped(int position) const override;
34 34
35 int getPositionForFactor(double factor) const; 35 int getPositionForFactor(double factor) const;
36 double getValueForFactor(double factor) const; 36 double getValueForFactor(double factor) const;
37 37
38 double getFactorForPosition(int position) const; 38 double getFactorForPosition(int position) const;
39 double getFactorForValue(double value) const; 39 double getFactorForValue(double value) const;
40 40
41 virtual QString getUnit() const; 41 QString getUnit() const override;
42 42
43 protected: 43 protected:
44 int m_minpos; 44 int m_minpos;
45 int m_maxpos; 45 int m_maxpos;
46 }; 46 };