arduino-audio-tools
Loading...
Searching...
No Matches
ChannelMixer< T, SumT > Class Template Reference

We mix all input channels in a datastream. E.g. if we have stereo input data we end up with 2 identical mono channels. More...

#include <CodecOpusOgg.h>

Inheritance diagram for ChannelMixer< T, SumT >:
BaseConverter BaseConverter

Public Member Functions

 ChannelMixer (int channels=2)
 ChannelMixer (int channels=2)
size_t convert (uint8_t *data, size_t size)
size_t convert (uint8_t *data, size_t size)

Protected Attributes

int channels = 2

Detailed Description

template<typename T = int16_t, typename SumT = float>
class audio_tools::audio_tools::ChannelMixer< T, SumT >

We mix all input channels in a datastream. E.g. if we have stereo input data we end up with 2 identical mono channels.

Author
Phil Schatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ ChannelMixer() [1/2]

template<typename T = int16_t, typename SumT = float>
ChannelMixer ( int channels = 2)
inline

◆ ChannelMixer() [2/2]

template<typename T = int16_t, typename SumT = float>
ChannelMixer ( int channels = 2)
inline

Member Function Documentation

◆ convert() [1/2]

template<typename T = int16_t, typename SumT = float>
size_t convert ( uint8_t * data,
size_t size )
inlinevirtual

Implements BaseConverter.

◆ convert() [2/2]

template<typename T = int16_t, typename SumT = float>
size_t convert ( uint8_t * data,
size_t size )
inlinevirtual

Implements BaseConverter.

Member Data Documentation

◆ channels

template<typename T = int16_t, typename SumT = float>
int channels = 2
protected

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