arduino-audio-tools
|
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>
Public Member Functions | |
ChannelReducer (int channelCountOfTarget, int channelCountOfSource, int bitsPerSample) | |
size_t | convert (uint8_t *src, size_t size) |
size_t | convert (uint8_t *target, uint8_t *src, size_t size) |
Protected Attributes | |
int | bits |
int | from_channels |
int | to_channels |
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.
Implements BaseConverter.