arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Attributes | List of all members
ChannelReducerT< 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 <BaseConverter.h>

Inheritance diagram for ChannelReducerT< T >:
BaseConverter

Public Member Functions

 ChannelReducerT (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)
 

Protected Attributes

int from_channels
 
int to_channels
 

Detailed Description

template<typename T>
class audio_tools::ChannelReducerT< 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 convert ( uint8_t *  src,
size_t  size 
)
inlinevirtual

Implements BaseConverter.


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