Contents

class

SushiDSP::SincResampler

Offline windowed-sinc sample-rate converter (64 taps, Kaiser beta 8.6).

Declared in
include/SushiDSP/math/SincResampler.hpp

Control-thread only: allocates and is not real-time safe. Intended for load-time conversion of impulse responses to the host's sample rate.

Static public member functions

static std::vector< float > resample(const std::vector< float > &input, double input_rate, double output_rate)

Resamples a signal from one sample rate to another.

Parameters

input

Source samples.

input_rate

Sample rate the input was captured at, in Hz.

output_rate

Sample rate to produce, in Hz.

Returns

The resampled signal, rounded to the nearest whole sample count.

Exceptions

std::invalid_argument

if either rate is not positive.