|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
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. | |
Simple delay register.
Definition at line 17 of file tracktion_LatencyPlugin.cpp.
|
noexcept |
Clears the buffer.
Definition at line 41 of file tracktion_LatencyPlugin.cpp.
| int tracktion::engine::LatencyPlugin::DelayRegister::getSize | ( | ) | const |
Gets the buffer size.
Definition at line 59 of file tracktion_LatencyPlugin.cpp.
| 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.
| 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.
| 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.
| void tracktion::engine::LatencyPlugin::DelayRegister::setSize | ( | int | newSize | ) |
Sets the size of delay in samples.
Definition at line 47 of file tracktion_LatencyPlugin.cpp.