Skip to content

Function ::kfr_src_create_explicit_f32

function kfr_src_create_explicit_f32(int, int64_t, int64_t, kfr_f32, kfr_f32, kfr_f32, kfr_f32) capi

KFR_SRC_F32* kfr_src_create_explicit_f32(int taps, int64_t interpolation_factor,
                                         int64_t decimation_factor, kfr_f32 scale,
                                         kfr_f32 cutoff, kfr_f32 sidelobe_attenuation,
                                         kfr_f32 transition_width)

Creates a single-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_f32().

Fully qualified name: kfr_src_create_explicit_f32(int, int64_t, int64_t, kfr_f32, kfr_f32, kfr_f32, kfr_f32)

Declared at capi.h:1523