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

Nearest fractional interpolator. More...

#include <JPLSpatial/Auralization/FractionalDelay.h>

Public Member Functions

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

Static Public Attributes

static constexpr uint32 InputLength = 1
 

Detailed Description

Nearest fractional interpolator.

Constructor & Destructor Documentation

◆ NearestInterpolator()

JPL::NearestInterpolator::NearestInterpolator ( )
default

Member Function Documentation

◆ GetFraction()

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

◆ Process() [1/2]

float JPL::NearestInterpolator::Process ( float  data) const
inlinenoexcept

◆ Process() [2/2]

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

Process one taken from the integer tap of the delay line.

Parameters
datamust point to contiguous buffer of one sample.

◆ SetFraction()

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

Member Data Documentation

◆ InputLength

constexpr uint32 JPL::NearestInterpolator::InputLength = 1
staticconstexpr

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