|
arduino-audio-tools
|
Multi-channel resampler that applies a BaseInterpolator-derived algorithm to each channel. More...
#include <ResampleStreamT.h>
Public Member Functions | |
| void | addValue (float value, int channel) |
| void | addValues (const float *values) |
| Adds a new value for each channel. | |
| int | channels () const |
| Returns the number of channels. | |
| bool | getValues (float *out) |
| Gets the next interpolated value for each channel. | |
| operator bool () const | |
| void | setChannels (int channels) |
| void | setStepSize (float step) |
| Sets the step size for all channels. | |
Protected Attributes | |
| int | _channels = 0 |
| Vector< TInterpolator > | _resamplers |
Multi-channel resampler that applies a BaseInterpolator-derived algorithm to each channel.
| TInterpolator | The resampler type (must derive from BaseInterpolator). |
|
inline |
|
inline |
Adds a new value for each channel.
| values | Array of input values, one per channel. |
|
inline |
Returns the number of channels.
|
inline |
Gets the next interpolated value for each channel.
| out | Array to store the interpolated values, one per channel. |
|
inline |
|
inline |
|
inline |
Sets the step size for all channels.
| step | The new step size. |
|
protected |
|
protected |