Multiplies the values with the indicated factor adds the offset and clips at maxValue. To mute use a factor of 0.0!
More...
#include <CodecOpusOgg.h>
template<typename T = int16_t>
class audio_tools::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
-
◆ acc_t [1/2]
template<typename T = int16_t>
◆ acc_t [2/2]
template<typename T = int16_t>
◆ ConverterScaler() [1/2]
template<typename T = int16_t>
| ConverterScaler |
( |
float | factor, |
|
|
T | offset, |
|
|
T | maxValue, |
|
|
int | channels = 2 ) |
|
inline |
◆ ConverterScaler() [2/2]
template<typename T = int16_t>
| ConverterScaler |
( |
float | factor, |
|
|
T | offset, |
|
|
T | maxValue, |
|
|
int | channels = 2 ) |
|
inline |
◆ convert() [1/2]
template<typename T = int16_t>
| size_t convert |
( |
uint8_t * | src, |
|
|
size_t | byte_count ) |
|
inlinevirtual |
◆ convert() [2/2]
template<typename T = int16_t>
| size_t convert |
( |
uint8_t * | src, |
|
|
size_t | byte_count ) |
|
inlinevirtual |
◆ factor() [1/2]
template<typename T = int16_t>
Determines the actual factor (volume).
◆ factor() [2/2]
template<typename T = int16_t>
Determines the actual factor (volume).
◆ offset() [1/2]
template<typename T = int16_t>
Determines the offset value.
◆ offset() [2/2]
template<typename T = int16_t>
Determines the offset value.
◆ setFactor() [1/2]
template<typename T = int16_t>
| void setFactor |
( |
float | factor | ) |
|
|
inline |
Defines the factor (volume).
◆ setFactor() [2/2]
template<typename T = int16_t>
| void setFactor |
( |
float | factor | ) |
|
|
inline |
Defines the factor (volume).
◆ setOffset() [1/2]
template<typename T = int16_t>
| void setOffset |
( |
T | offset | ) |
|
|
inline |
◆ setOffset() [2/2]
template<typename T = int16_t>
| void setOffset |
( |
T | offset | ) |
|
|
inline |
◆ channels
template<typename T = int16_t>
◆ factor_value
template<typename T = int16_t>
| acc_t factor_value {0.0f} |
|
protected |
◆ maxValue
template<typename T = int16_t>
◆ offset_value
template<typename T = int16_t>
The documentation for this class was generated from the following files: