A resampler using soxr.
More...
#include <SoxrResampler.hxx>
A resampler using soxr.
Definition at line 33 of file SoxrResampler.hxx.
◆ Close()
void SoxrPcmResampler::Close |
( |
| ) |
|
|
overridevirtual |
◆ Open()
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.
◆ Resample()
Resamples a block of PCM data.
Throws std::runtime_error on error.
- Parameters
-
- Returns
- the destination buffer (will be invalidated by filter_close() or filter_filter())
Implements PcmResampler.
◆ Reset()
void SoxrPcmResampler::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: