|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Delay-line whose maximum size is fixed. More...
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. | |
| T | operator() (const T &v) |
| Write new value and return oldest value. | |
| T | comb (const T &v, const T &ffd, const T &fbk) |
| T | 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 |
| T | mBuf [N] |
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.
|
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.
|
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.