Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::PreparedSampleRateConversion Class Reference

Immutable, allocation-free read kernel after control-thread construction. More...

#include <sample_rate_conversion.hpp>

Public Member Functions

 PreparedSampleRateConversion (double cutoff)
bool ready () const noexcept
std::uint64_t prepared_bytes () const noexcept
float read (std::span< const float > source, double position) const noexcept

Static Public Member Functions

static std::uint64_t estimated_prepared_bytes () noexcept

Static Public Attributes

static constexpr double kMinimumSupportedCutoff = 0.125

Friends

class SampleRateConversionBuilder

Detailed Description

Immutable, allocation-free read kernel after control-thread construction.

cutoff is normalized to the source Nyquist. Construction allocates the phase table and is not audio-thread safe; read() is bounded and RT-safe.

Constructor & Destructor Documentation

◆ PreparedSampleRateConversion()

pulp::audio::PreparedSampleRateConversion::PreparedSampleRateConversion ( double cutoff)
inlineexplicit

Member Function Documentation

◆ estimated_prepared_bytes()

std::uint64_t pulp::audio::PreparedSampleRateConversion::estimated_prepared_bytes ( )
inlinestaticnoexcept

◆ prepared_bytes()

std::uint64_t pulp::audio::PreparedSampleRateConversion::prepared_bytes ( ) const
inlinenoexcept

◆ read()

float pulp::audio::PreparedSampleRateConversion::read ( std::span< const float > source,
double position ) const
inlinenoexcept

◆ ready()

bool pulp::audio::PreparedSampleRateConversion::ready ( ) const
inlinenoexcept

◆ SampleRateConversionBuilder

friend class SampleRateConversionBuilder
friend

Member Data Documentation

◆ kMinimumSupportedCutoff

double pulp::audio::PreparedSampleRateConversion::kMinimumSupportedCutoff = 0.125
staticconstexpr

The documentation for this class was generated from the following file: