Allolib  1.0
C++ Components For Interactive Multimedia
al::StaticDelayLine< N, T > Class Template Reference

Delay-line whose maximum size is fixed. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/sound/al_Reverb.hpp>

Public Member Functions

const T & back () const
 Get element at back.
 
int indexBack () const
 Get index of back element.
 
int pos () const
 Get absolute index of write tap.
 
const T & read (int i) const
 Read value at delay i.
 
void write (const T &v)
 Write value to delay.
 
operator() (const T &v)
 Write new value and return oldest value.
 
comb (const T &v, const T &ffd, const T &fbk)
 
allpass (const T &v, const T &ffd)
 
void zero ()
 Zeroes all elements (byte-wise)
 

Static Public Member Functions

static int size ()
 Get size of delay-line.
 

Protected Attributes

int mPos
 
mBuf [N]
 

Detailed Description

template<int N, class T>
class al::StaticDelayLine< N, T >

Delay-line whose maximum size is fixed.

The advantage of using a static versus dynamic array is that its elements can be laid out in a predictable location in memory. This can improve access speeds if many delay-lines are used within another object, like a reverb.

Definition at line 62 of file al_Reverb.hpp.

Member Function Documentation

◆ allpass()

template<int N, class T >
T al::StaticDelayLine< N, T >::allpass ( const T &  v,
const T &  ffd 
)
inline

Allpass filter input using a delay time equal to the maximum size of the delay-line

Definition at line 114 of file al_Reverb.hpp.

◆ comb()

template<int N, class T >
T al::StaticDelayLine< N, T >::comb ( const T &  v,
const T &  ffd,
const T &  fbk 
)
inline

Comb filter input using a delay time equal to the maximum size of the delay-line

Definition at line 105 of file al_Reverb.hpp.


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