arduino-audio-tools
|
Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples) More...
#include <BaseConverter.h>
Public Member Functions | |
Decimate (int factor, int channels, int bits_per_sample) | |
size_t | convert (uint8_t *src, size_t size) |
size_t | convert (uint8_t *target, uint8_t *src, size_t size) |
operator bool () | |
void | setBits (int bits) |
void | setChannels (int channels) |
Defines the number of channels. | |
void | setFactor (int factor) |
Sets the factor: e.g. with 4 we keep every forth sample. | |
Protected Attributes | |
int | bits = 16 |
int | channels = 2 |
int | factor = 1 |
Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples)