ASPiK SDK
Loading...
Searching...
No Matches
LinearBuffer< T > Class Template Reference

The LinearBuffer object implements a linear buffer of type T. It allows easy wrapping of a smart pointer object. More...

#include <fxobjects.h>

Public Member Functions

void flushBuffer ()
 
void createLinearBuffer (unsigned int _bufferLength)
 
void writeBuffer (unsigned int index, T input)
 
readBuffer (unsigned int index)
 

Detailed Description

template<typename T>
class LinearBuffer< T >

The LinearBuffer object implements a linear buffer of type T. It allows easy wrapping of a smart pointer object.

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ createLinearBuffer()

template<typename T >
void LinearBuffer< T >::createLinearBuffer ( unsigned int  _bufferLength)
inline

Create a buffer based on a target maximum in SAMPLES do NOT call from realtime audio thread; do this prior to any processing

◆ flushBuffer()

template<typename T >
void LinearBuffer< T >::flushBuffer ( )
inline

flush buffer by resetting all values to 0.0

◆ readBuffer()

template<typename T >
T LinearBuffer< T >::readBuffer ( unsigned int  index)
inline

read an arbitrary location that is delayInSamples old

◆ writeBuffer()

template<typename T >
void LinearBuffer< T >::writeBuffer ( unsigned int  index,
input 
)
inline

write a value into the buffer; this overwrites the previous oldest value in the buffer


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