A resampler using libsamplerate.
More...
#include <LibsamplerateResampler.hxx>
A resampler using libsamplerate.
Definition at line 35 of file LibsamplerateResampler.hxx.
void LibsampleratePcmResampler::Close |
( |
| ) |
|
|
overridevirtual |
Opens the resampler, preparing it for Resample().
Throws std::runtime_error on error.
- Parameters
-
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 |
- Returns
- the format of outgoing data
Implements PcmResampler.
Resamples a block of PCM data.
- Parameters
-
- Returns
- the destination buffer (will be invalidated by filter_close() or filter_filter())
Implements PcmResampler.
void LibsampleratePcmResampler::Reset |
( |
| ) |
|
|
overridevirtual |
Reset the filter's state, e.g.
drop/flush buffers.
Reimplemented from PcmResampler.
The documentation for this class was generated from the following file: