![]() |
VCV Rack API v2
|
Resamples by a fixed rational factor. More...
#include <resampler.hpp>
Public Member Functions | |
| SampleRateConverter () | |
| ~SampleRateConverter () | |
| void | setChannels (int channels) |
| Sets the number of channels to actually process. | |
| void | setQuality (int quality) |
| From 0 (worst, fastest) to 10 (best, slowest). | |
| void | setRates (int inRate, int outRate) |
| void | refreshState () |
| void | process (const float *in, int inStride, int *inFrames, float *out, int outStride, int *outFrames) |
| void | process (const Frame< MAX_CHANNELS > *in, int *inFrames, Frame< MAX_CHANNELS > *out, int *outFrames) |
Public Attributes | |
| SpeexResamplerState * | st = NULL |
| int | channels = MAX_CHANNELS |
| int | quality = SPEEX_RESAMPLER_QUALITY_DEFAULT |
| int | inRate = 44100 |
| int | outRate = 44100 |
Resamples by a fixed rational factor.
|
inline |
|
inline |
|
inline |
Sets the number of channels to actually process.
This can be at most MAX_CHANNELS.
|
inline |
From 0 (worst, fastest) to 10 (best, slowest).
|
inline |
|
inline |
|
inline |
|
inline |
| SpeexResamplerState* rack::dsp::SampleRateConverter< MAX_CHANNELS >::st = NULL |
| int rack::dsp::SampleRateConverter< MAX_CHANNELS >::channels = MAX_CHANNELS |
| int rack::dsp::SampleRateConverter< MAX_CHANNELS >::quality = SPEEX_RESAMPLER_QUALITY_DEFAULT |
| int rack::dsp::SampleRateConverter< MAX_CHANNELS >::inRate = 44100 |
| int rack::dsp::SampleRateConverter< MAX_CHANNELS >::outRate = 44100 |