JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::LinearInterpolator Class Reference

Linear fractional interpolator. More...

#include <JPLSpatial/Auralization/FractionalDelay.h>

Public Member Functions

 LinearInterpolator ()=default
 
void SetFraction (float fraction)
 
float GetFraction () const
 
float Process (std::span< const float, InputLength > data) const noexcept
 

Static Public Attributes

static constexpr uint32 InputLength = 2
 

Detailed Description

Linear fractional interpolator.

Constructor & Destructor Documentation

◆ LinearInterpolator()

JPL::LinearInterpolator::LinearInterpolator ( )
default

Member Function Documentation

◆ GetFraction()

float JPL::LinearInterpolator::GetFraction ( ) const
inline

◆ Process()

float JPL::LinearInterpolator::Process ( std::span< const float, InputLength > data) const
inlinenoexcept

Process two samples taken from the integer tap of the delay line.

Parameters
datamust point to contiguous buffer of two last samples from newest to oldest.

◆ SetFraction()

void JPL::LinearInterpolator::SetFraction ( float fraction)
inline
Parameters
fractionmust be in (0, 1).

Member Data Documentation

◆ InputLength

uint32 JPL::LinearInterpolator::InputLength = 2
inlinestaticconstexpr

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