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>
|
| ConverterScaler (float factor, T offset, T maxValue, int channels=2) |
|
size_t | convert (uint8_t *src, size_t byte_count) |
|
float | factor () |
| Determines the actual factor (volume)
|
|
T | offset () |
| Determines the offset value.
|
|
void | setFactor (float factor) |
| Defines the factor (volume)
|
|
void | setOffset (T offset) |
| Defines the offset.
|
|
|
int | channels |
|
float | factor_value |
|
T | maxValue |
|
T | offset_value |
|
template<typename 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
-
◆ convert()
template<typename T >
size_t convert |
( |
uint8_t * |
src, |
|
|
size_t |
byte_count |
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: