arduino-audio-tools
|
Provides reduced sampling rates through binning: typed implementation. More...
#include <BaseConverter.h>
Public Member Functions | |
BinT (int binSize, int channels, bool average) | |
size_t | convert (uint8_t *src, size_t size) |
size_t | convert (uint8_t *target, uint8_t *src, size_t size) |
operator bool () | |
void | setAverage (bool average) |
Enables averaging: e.g. when true it divides the sum by number of bins. | |
void | setBinSize (int binSize) |
Sets the bins: e.g. with 4 we sum 4 sample. | |
void | setChannels (int channels) |
Defines the number of channels. | |
Protected Attributes | |
bool | average = true |
int | binSize = 1 |
int | channels = 2 |
uint16_t | count = 0 |
Provides reduced sampling rates through binning: typed implementation.