MPD
0.20.15
|
A naive resampler that is used when no external library was found (or when the user explicitly asks for bad quality). More...
#include <FallbackResampler.hxx>
Public Member Functions | |
AudioFormat | Open (AudioFormat &af, unsigned new_sample_rate) override |
Opens the resampler, preparing it for Resample(). More... | |
void | Close () override |
Closes the resampler. More... | |
ConstBuffer< void > | Resample (ConstBuffer< void > src) override |
Resamples a block of PCM data. More... | |
![]() | |
virtual | ~PcmResampler () |
virtual void | Reset () |
Reset the filter's state, e.g. More... | |
A naive resampler that is used when no external library was found (or when the user explicitly asks for bad quality).
Definition at line 32 of file FallbackResampler.hxx.
|
overridevirtual |
|
overridevirtual |
Opens the resampler, preparing it for Resample().
Throws std::runtime_error on error.
af | the audio format of incoming data; the plugin may modify the object to enforce another input format (however, it may not request a different input sample rate) |
new_sample_rate | the requested output sample rate |
error | location to store the error |
Implements PcmResampler.
|
overridevirtual |
Resamples a block of PCM data.
Throws std::runtime_error on error.
src | the input buffer |
Implements PcmResampler.