|
arduino-audio-tools
|
Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples) More...
#include <BaseConverter.h>
Classes | |
| struct | DecimateState |
| struct | DecimateStateT |
Public Member Functions | |
| Decimate ()=default | |
| Decimate (int factor, int channels, int bits_per_sample) | |
| ~Decimate () override | |
| void | clear () |
| size_t | convert (uint8_t *src, size_t size) |
| size_t | convert (uint8_t *target, uint8_t *src, size_t size) |
| operator bool () | |
| void | reset () |
| 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 Member Functions | |
| bool | isConfigValid () |
| void | resetState () |
Protected Attributes | |
| int | bits = 16 |
| int | channels = 2 |
| int | factor = 1 |
| DecimateState * | state = nullptr |
Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples)
|
default |
|
inlineoverride |
|
inline |
Implements BaseConverter.
|
inlineprotected |
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |