Multiplies the values with the indicated factor adds the offset and clips at maxValue. To mute use a factor of 0.0!
More...
#include <BaseConverter.h>
template<typename T = int16_t>
class audio_tools::ConverterScaler< T >
Multiplies the values with the indicated factor adds the offset and clips at maxValue. To mute use a factor of 0.0!
- Author
- Phil Schatzmann
- Copyright
- GPLv3
- Template Parameters
-
◆ ConverterScaler()
template<typename T = int16_t>
◆ convert()
template<typename T = int16_t>
| size_t convert |
( |
uint8_t * |
src, |
|
|
size_t |
byte_count |
|
) |
| |
|
inlinevirtual |
◆ factor()
template<typename T = int16_t>
Determines the actual factor (volume)
◆ offset()
template<typename T = int16_t>
Determines the offset value.
◆ setFactor()
template<typename T = int16_t>
| void setFactor |
( |
float |
factor | ) |
|
|
inline |
Defines the factor (volume)
◆ setOffset()
template<typename T = int16_t>
| void setOffset |
( |
T |
offset | ) |
|
|
inline |
◆ channels
template<typename T = int16_t>
◆ factor_value
template<typename T = int16_t>
◆ maxValue
template<typename T = int16_t>
◆ offset_value
template<typename T = int16_t>
The documentation for this class was generated from the following file: