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

We combine a datastream which consists of multiple channels into less channels. E.g. 2 to 1 The last target channel will contain the combined values of the exceeding source channels. More...

#include <Converter.h>

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

Public Member Functions

 ChannelReducer (int channelCountOfTarget, int channelCountOfSource)
 
size_t convert (uint8_t *src, size_t size)
 
size_t convert (uint8_t *target, uint8_t *src, size_t size)
 
void setSourceChannels (int channelCountOfSource)
 
void setTargetChannels (int channelCountOfTarget)
 
- 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 Attributes

int from_channels
 
int to_channels
 

Detailed Description

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

We combine a datastream which consists of multiple channels into less channels. E.g. 2 to 1 The last target channel will contain the combined values of the exceeding source channels.

Template Parameters
T

Member Function Documentation

◆ convert()

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

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