The simplest possible implementation of a VolumeControl: The input = output which describes a linear curve. You would use this implementation if you physically connect an audio pot!
More...
#include <VolumeControl.h>
|
| | LinearVolumeControl (bool allowBoost=false) |
| |
| virtual float | getVolumeFactor (float volume) |
| | determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
|
| |
|
| virtual float | limit (float in) |
| | limits the output to the range of 0 to 1.0
|
| |
The simplest possible implementation of a VolumeControl: The input = output which describes a linear curve. You would use this implementation if you physically connect an audio pot!
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ LinearVolumeControl()
◆ getVolumeFactor()
| virtual float getVolumeFactor |
( |
float |
volume | ) |
|
|
inlinevirtual |
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Implements VolumeControl.
◆ limit()
| virtual float limit |
( |
float |
in | ) |
|
|
inlineprotectedvirtualinherited |
limits the output to the range of 0 to 1.0
◆ is_limited
The documentation for this class was generated from the following file: