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

Increases the channel count. More...

#include <BaseConverter.h>

Public Member Functions

 ChannelEnhancer ()=default
 
 ChannelEnhancer (int channelCountOfTarget, int channelCountOfSource)
 
size_t convert (uint8_t *target, uint8_t *src, size_t size)
 
size_t resultSize (size_t inSize)
 Determine the size of the conversion result.
 
void setSourceChannels (int channelCountOfSource)
 
void setTargetChannels (int channelCountOfTarget)
 

Protected Attributes

int from_channels = 0
 
int to_channels = 0
 

Detailed Description

template<typename T = int16_t>
class audio_tools::ChannelEnhancer< T >

Increases the channel count.

Template Parameters
T

Constructor & Destructor Documentation

◆ ChannelEnhancer() [1/2]

template<typename T = int16_t>
ChannelEnhancer ( )
default

◆ ChannelEnhancer() [2/2]

template<typename T = int16_t>
ChannelEnhancer ( int  channelCountOfTarget,
int  channelCountOfSource 
)
inline

Member Function Documentation

◆ convert()

template<typename T = int16_t>
size_t convert ( uint8_t target,
uint8_t src,
size_t  size 
)
inline

◆ resultSize()

template<typename T = int16_t>
size_t resultSize ( size_t  inSize)
inline

Determine the size of the conversion result.

◆ setSourceChannels()

template<typename T = int16_t>
void setSourceChannels ( int  channelCountOfSource)
inline

◆ setTargetChannels()

template<typename T = int16_t>
void setTargetChannels ( int  channelCountOfTarget)
inline

Member Data Documentation

◆ from_channels

template<typename T = int16_t>
int from_channels = 0
protected

◆ to_channels

template<typename T = int16_t>
int to_channels = 0
protected

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