arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
audio_tools::ConverterAutoCenter< T > Class Template Reference

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

#include <Converter.h>

Inheritance diagram for audio_tools::ConverterAutoCenter< T >:
audio_tools::BaseConverter< T >

Public Member Functions

 ConverterAutoCenter (int channels=2)
 
size_t convert (uint8_t(*src), size_t byte_count)
 
- Public Member Functions inherited from audio_tools::BaseConverter< T >
 BaseConverter (BaseConverter const &)=delete
 
virtual size_t convert (uint8_t *src, size_t size)=0
 
BaseConverteroperator= (BaseConverter const &)=delete
 

Protected Member Functions

void setup (T *src, size_t size)
 

Protected Attributes

int channels
 
bool is_setup = false
 
float left
 
offset
 
float right
 

Detailed Description

template<typename T>
class audio_tools::ConverterAutoCenter< T >

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

Template Parameters
T

Member Function Documentation

◆ convert()

template<typename T >
size_t audio_tools::ConverterAutoCenter< T >::convert ( uint8_t *  src,
size_t  byte_count 
)
inlinevirtual

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