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

Converter for n Channels which applies the indicated Filter. More...

#include <BaseConverter.h>

Inheritance diagram for ConverterNChannels< T, FT >:
BaseConverter

Public Member Functions

 ConverterNChannels (int channels)
 Default Constructor.
 
size_t convert (uint8_t *src, size_t size)
 
int getChannels ()
 
Filter< FT > * getFilter (int channel)
 returns the filter for the indicated channel
 
void setChannels (int newChannels)
 
void setFilter (int channel, Filter< FT > *filter)
 defines the filter for an individual channel - the first channel is 0
 

Protected Attributes

int channels = 0
 
Vector< Filter< FT > * > filters
 

Detailed Description

template<typename T, typename FT>
class audio_tools::ConverterNChannels< T, FT >

Converter for n Channels which applies the indicated Filter.

Author
pschatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ ConverterNChannels()

template<typename T , typename FT >
ConverterNChannels ( int  channels)
inline

Default Constructor.

Member Function Documentation

◆ convert()

template<typename T , typename FT >
size_t convert ( uint8_t src,
size_t  size 
)
inlinevirtual

Implements BaseConverter.

◆ getChannels()

template<typename T , typename FT >
int getChannels ( )
inline

◆ getFilter()

template<typename T , typename FT >
Filter< FT > * getFilter ( int  channel)
inline

returns the filter for the indicated channel

◆ setChannels()

template<typename T , typename FT >
void setChannels ( int  newChannels)
inline

dynamically change the number of channels; existing filters for valid indices are preserved, new slots are initialized to nullptr

◆ setFilter()

template<typename T , typename FT >
void setFilter ( int  channel,
Filter< FT > *  filter 
)
inline

defines the filter for an individual channel - the first channel is 0

Member Data Documentation

◆ channels

template<typename T , typename FT >
int channels = 0
protected

◆ filters

template<typename T , typename FT >
Vector<Filter<FT> *> filters
protected

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