Multi-channel resampler that applies a BaseInterpolator-derived algorithm to each channel.
More...
#include <ResampleStreamT.h>
template<class TInterpolator>
class audio_tools::MultiChannelResampler< TInterpolator >
Multi-channel resampler that applies a BaseInterpolator-derived algorithm to each channel.
- Template Parameters
-
◆ addValue()
template<class TInterpolator >
| void addValue |
( |
float |
value, |
|
|
int |
channel |
|
) |
| |
|
inline |
◆ addValues()
template<class TInterpolator >
| void addValues |
( |
const float * |
values | ) |
|
|
inline |
Adds a new value for each channel.
- Parameters
-
| values | Array of input values, one per channel. |
◆ channels()
template<class TInterpolator >
Returns the number of channels.
◆ getValues()
template<class TInterpolator >
| bool getValues |
( |
float * |
out | ) |
|
|
inline |
Gets the next interpolated value for each channel.
- Parameters
-
| out | Array to store the interpolated values, one per channel. |
- Returns
- True if values were produced, false if more input is needed.
◆ operator bool()
template<class TInterpolator >
◆ setChannels()
template<class TInterpolator >
| void setChannels |
( |
int |
channels | ) |
|
|
inline |
◆ setStepSize()
template<class TInterpolator >
| void setStepSize |
( |
float |
step | ) |
|
|
inline |
Sets the step size for all channels.
- Parameters
-
◆ _channels
template<class TInterpolator >
◆ _resamplers
template<class TInterpolator >
| Vector<TInterpolator> _resamplers |
|
protected |
The documentation for this class was generated from the following file: