JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::Topology::Biquad Struct Reference

#include <JPLSpatial/Auralization/FilterComponents.h>

Public Types

using Sample = float
 

Public Member Functions

std::complex< double > CalculateResponse (float normalizedFrequency) const
 
template<class StateType >
void ProcessInterpolating (std::span< Sample > samples, StateType &state, Biquad &previous) const
 
template<class StateType >
void ProcessInterpolating (std::span< Sample > samples, uint32 stride, StateType &state, Biquad &previous) const
 
JPL_INLINE void SetCoefficients (const Topology::Biquad &other)
 

Static Public Member Functions

static Biquad Combine (const OnePole &low, const OnePole &high, float broadbandGain)
 
static JPL_INLINE Biquad MakeHighShelf (double normalizedFrequency, double gainDb)
 
static Biquad MakeHighShelf (const Cache::BiquadShelf &cache, double gainDb)
 

Public Attributes

Sample b0 = 1.0f
 
Sample b1 = 0.0f
 
Sample b2 = 0.0f
 
Sample a1 = 0.0f
 
Sample a2 = 0.0f
 

Member Typedef Documentation

◆ Sample

Member Function Documentation

◆ CalculateResponse()

std::complex< double > JPL::Topology::Biquad::CalculateResponse ( float normalizedFrequency) const
inlinenodiscard

◆ Combine()

Topology::Biquad JPL::Topology::Biquad::Combine ( const OnePole & low,
const OnePole & high,
float broadbandGain )
inlinestaticnodiscard

◆ MakeHighShelf() [1/2]

Topology::Biquad JPL::Topology::Biquad::MakeHighShelf ( const Cache::BiquadShelf & cache,
double gainDb )
inlinestaticnodiscard

◆ MakeHighShelf() [2/2]

JPL_INLINE Topology::Biquad JPL::Topology::Biquad::MakeHighShelf ( double normalizedFrequency,
double gainDb )
staticnodiscard

◆ ProcessInterpolating() [1/2]

template<class StateType >
void JPL::Topology::Biquad::ProcessInterpolating ( std::span< Sample > samples,
StateType & state,
Topology::Biquad & previous ) const
inline

◆ ProcessInterpolating() [2/2]

template<class StateType >
void JPL::Topology::Biquad::ProcessInterpolating ( std::span< Sample > samples,
uint32 stride,
StateType & state,
Biquad & previous ) const
inline

◆ SetCoefficients()

JPL_INLINE void JPL::Topology::Biquad::SetCoefficients ( const Topology::Biquad & other)

Member Data Documentation

◆ a1

Sample JPL::Topology::Biquad::a1 = 0.0f

◆ a2

Sample JPL::Topology::Biquad::a2 = 0.0f

◆ b0

Sample JPL::Topology::Biquad::b0 = 1.0f

◆ b1

Sample JPL::Topology::Biquad::b1 = 0.0f

◆ b2

Sample JPL::Topology::Biquad::b2 = 0.0f

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