Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Methods
signalsmith::delay::Reader< Sample, Interpolator > Class Template Reference

#include <delay.h>

Detailed Description

template<class Sample, template< typename > class Interpolator = InterpolatorLinear>
class signalsmith::delay::Reader< Sample, Interpolator >

A delay-line reader which uses an external buffer.

This is useful if you have multiple delay-lines reading from the same buffer.

Inherits signalsmith::delay::InterpolatorLinear< Sample >.

Methods

 Reader (const Interpolator< Sample > &interpolator)
 Pass in a configured interpolator. More...
 
template<typename Buffer >
Sample read (const Buffer &buffer, Sample delaySamples) const
 

Additional Inherited Members

- Static Methods inherited from signalsmith::delay::InterpolatorLinear< Sample >
template<class Data >
static Sample fractional (const Data &data, Sample fractional)
 
- Static Attributes inherited from signalsmith::delay::InterpolatorLinear< Sample >
static constexpr int inputLength = 2
 
static constexpr int latency = 0
 

Constructor & Destructor Documentation

◆ Reader()

template<class Sample , template< typename > class Interpolator = InterpolatorLinear>
signalsmith::delay::Reader< Sample, Interpolator >::Reader ( const Interpolator< Sample > &  interpolator)
inline

Pass in a configured interpolator.