Skip to content

Function ::kfr_src_create_explicit_f64

function kfr_src_create_explicit_f64(int, int64_t, int64_t, kfr_f64, kfr_f64, kfr_f64, kfr_f64) capi

KFR_SRC_F64* kfr_src_create_explicit_f64(int taps, int64_t interpolation_factor,
                                         int64_t decimation_factor, kfr_f64 scale,
                                         kfr_f64 cutoff, kfr_f64 sidelobe_attenuation,
                                         kfr_f64 transition_width)

Creates a double-precision sample rate converter from explicit filter parameters.

Parameters
taps Number of filter taps. Must be greater than zero.
interpolation_factor Interpolation factor. Must be greater than zero.
decimation_factor Decimation factor. Must be greater than zero.
scale Output scale factor.
cutoff Cutoff frequency as a fraction of the Nyquist frequency.
sidelobe_attenuation Stopband attenuation in dB used to derive the Kaiser window.
transition_width Accepted for parity with the C++ constructor. Currently unused.
Returns
New converter, or NULL on error. Release it with kfr_src_delete_f64().

Fully qualified name: kfr_src_create_explicit_f64(int, int64_t, int64_t, kfr_f64, kfr_f64, kfr_f64, kfr_f64)

Declared at capi.h:1540