arduino-audio-tools
|
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>
Public Member Functions | |
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. | |
Protected Attributes | |
int | channels |
float | factor_value |
T | maxValue |
T | offset_value |
Multiplies the values with the indicated factor adds the offset and clips at maxValue. To mute use a factor of 0.0!
T |