arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ConverterAutoCenter Class Reference

Makes sure that the avg of the signal is set to 0. More...

#include <BaseConverter.h>

Inheritance diagram for ConverterAutoCenter:
BaseConverter

Public Member Functions

 ConverterAutoCenter ()=default
 
 ConverterAutoCenter (AudioInfo info)
 
 ConverterAutoCenter (int channels, int bitsPerSample)
 
 ~ConverterAutoCenter ()
 
bool begin (AudioInfo info, bool isDynamic=false)
 
bool begin (int channels, int bitsPerSample, bool isDynamic=false)
 
void clear ()
 
size_t convert (uint8_t *src, size_t size) override
 
void end ()
 
void reset ()
 

Protected Attributes

int bits_per_sample = 0
 
int channels = 0
 
bool is_dynamic = false
 
BaseConverterp_converter = nullptr
 

Detailed Description

Makes sure that the avg of the signal is set to 0.

Constructor & Destructor Documentation

◆ ConverterAutoCenter() [1/3]

ConverterAutoCenter ( )
default

◆ ConverterAutoCenter() [2/3]

ConverterAutoCenter ( AudioInfo  info)
inline

◆ ConverterAutoCenter() [3/3]

ConverterAutoCenter ( int  channels,
int  bitsPerSample 
)
inline

◆ ~ConverterAutoCenter()

~ConverterAutoCenter ( )
inline

Member Function Documentation

◆ begin() [1/2]

bool begin ( AudioInfo  info,
bool  isDynamic = false 
)
inline

◆ begin() [2/2]

bool begin ( int  channels,
int  bitsPerSample,
bool  isDynamic = false 
)
inline

◆ clear()

void clear ( )
inline

◆ convert()

size_t convert ( uint8_t src,
size_t  size 
)
inlineoverridevirtual

Implements BaseConverter.

◆ end()

void end ( )
inline

◆ reset()

void reset ( )
inline

Member Data Documentation

◆ bits_per_sample

int bits_per_sample = 0
protected

◆ channels

int channels = 0
protected

◆ is_dynamic

bool is_dynamic = false
protected

◆ p_converter

BaseConverter* p_converter = nullptr
protected

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