tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::engine::LatencyPlugin::DelayRegister Class Reference

Simple delay register. More...

Public Member Functions

 DelayRegister ()=default
 Creates an empty DelayRegister.
 
void setMaxSize (int maxSize)
 Sets the max size of the register.
 
void clear () noexcept
 Clears the buffer.
 
void setSize (int newSize)
 Sets the size of delay in samples.
 
int getSize () const
 Gets the buffer size.
 
void processSamples (float *samples, int numSamples)
 Processes a number of samples, replacing the contents with delayed samples.
 
void processSamplesSmoothed (float *samples, int numSamples)
 Processes a number of samples, crossfading the current and last read positions to avoid glitches.
 

Detailed Description

Simple delay register.

Definition at line 17 of file tracktion_LatencyPlugin.cpp.

Member Function Documentation

◆ clear()

void tracktion::engine::LatencyPlugin::DelayRegister::clear ( )
noexcept

Clears the buffer.

Definition at line 41 of file tracktion_LatencyPlugin.cpp.

◆ getSize()

int tracktion::engine::LatencyPlugin::DelayRegister::getSize ( ) const

Gets the buffer size.

Definition at line 59 of file tracktion_LatencyPlugin.cpp.

◆ processSamples()

void tracktion::engine::LatencyPlugin::DelayRegister::processSamples ( float samples,
int  numSamples 
)

Processes a number of samples, replacing the contents with delayed samples.

Definition at line 65 of file tracktion_LatencyPlugin.cpp.

◆ processSamplesSmoothed()

void tracktion::engine::LatencyPlugin::DelayRegister::processSamplesSmoothed ( float samples,
int  numSamples 
)

Processes a number of samples, crossfading the current and last read positions to avoid glitches.

Definition at line 83 of file tracktion_LatencyPlugin.cpp.

◆ setMaxSize()

void tracktion::engine::LatencyPlugin::DelayRegister::setMaxSize ( int  maxSize)

Sets the max size of the register.

After setting this, calls to setSize should not be larger than maxSize.

Definition at line 27 of file tracktion_LatencyPlugin.cpp.

◆ setSize()

void tracktion::engine::LatencyPlugin::DelayRegister::setSize ( int  newSize)

Sets the size of delay in samples.

Definition at line 47 of file tracktion_LatencyPlugin.cpp.


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