class dft_resampler<T> convolution¶
template <typename T>
class dft_resampler { … } function kaiser_beta_from_attenuation(T) ¶
static T kaiser_beta_from_attenuation(T att) Computes Kaiser beta from desired stopband attenuation (dB). Uses the Kaiser formula (same as samplerate_converter::window_param).
Defined at dft/dft_resampler.hpp:116
function input_block_size() ¶
size_t input_block_size() const noexcept Defined at dft/dft_resampler.hpp:125
function factor() ¶
size_t factor() const noexcept Defined at dft/dft_resampler.hpp:126
function is_downsampling() ¶
bool is_downsampling() const noexcept Defined at dft/dft_resampler.hpp:127
function filter_length() ¶
size_t filter_length() const noexcept Defined at dft/dft_resampler.hpp:128
function output_block_size() ¶
size_t output_block_size() const noexcept Defined at dft/dft_resampler.hpp:129
function input_hop() ¶
size_t input_hop() const noexcept Defined at dft/dft_resampler.hpp:130
function output_hop() ¶
size_t output_hop() const noexcept Defined at dft/dft_resampler.hpp:131
function reset() ¶
void reset() noexcept Resets the resampler to its freshly-constructed state, clearing all buffered input without changing filter parameters.
Defined at dft/dft_resampler.hpp:137
function compute_block_size(size_t, T, T) ¶
static size_t compute_block_size(size_t upsample_factor, T stopband_atten_db, T transition_width) Computes the minimal power-of-2 block size required for the given filter parameters (Kaiser formula).
Defined at dft/dft_resampler.hpp:148
constructor dft_resampler<T>(const dft_resampler_params &) ¶
explicit dft_resampler(const dft_resampler_params& params)
| params | Resampler parameters. |
Defined at dft/dft_resampler.hpp:164
function process_frame(const T *) ¶
T* process_frame(const T* input) Defined at dft/dft_resampler.hpp:310
function process_frame(T *, const T *) ¶
void process_frame(T* output, const T* input) Process one frame via overlap-save. FFTs m_input_buffer, applies spectral shaping, IFFTs, discards circular artefacts, writes valid output directly.
Defined at dft/dft_resampler.hpp:367
function process(int, int) ¶
size_t process(std::span<T> output, std::span<const T> input) Process arbitrary-sized input and produce resampled output.
| input | Input samples (any size). |
| output | Output buffer. Must be large enough for all frames produced. |
| Number of output samples actually written. |
Defined at dft/dft_resampler.hpp:380
Defined at dft/dft_resampler.hpp:84