arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
ConverterScaler< T > Class Template Reference

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>

Inheritance diagram for ConverterScaler< T >:
BaseConverter

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)
 
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
 
maxValue
 
offset_value
 

Detailed Description

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
Template Parameters
T

The documentation for this class was generated from the following file: