Simple delay with minimum memory operations.
More...
#include "SuperpoweredDelay.h"
|
| Delay (unsigned int maximumDelayMs, unsigned int maximumSamplerate, unsigned int maximumNumberOfFramesToProcess, unsigned int samplerate) |
| Constructor. More...
|
|
| ~Delay () |
|
const float *const | process (float *input, int numberOfFrames, FX *fx=0) |
| Processes the audio. More...
|
|
Simple delay with minimum memory operations.
◆ Delay() [1/2]
Superpowered::Delay::Delay |
( |
unsigned int |
maximumDelayMs, |
|
|
unsigned int |
maximumSamplerate, |
|
|
unsigned int |
maximumNumberOfFramesToProcess, |
|
|
unsigned int |
samplerate |
|
) |
| |
Constructor.
- Parameters
-
maximumDelayMs | Maximum delay in milliseconds. Higher values increase memory usage. |
maximumSamplerate | Maximum sample rate to support. Higher values increase memory usage. |
maximumNumberOfFramesToProcess | Maximum number of frames for the process() call. Has minimum effect on memory usage. |
samplerate | The initial sample rate in Hz. |
◆ ~Delay()
Superpowered::Delay::~Delay |
( |
| ) |
|
◆ Delay() [2/2]
Superpowered::Delay::Delay |
( |
const Delay & |
| ) |
|
|
private |
◆ operator=()
Delay& Superpowered::Delay::operator= |
( |
const Delay & |
| ) |
|
|
private |
◆ process()
const float* const Superpowered::Delay::process |
( |
float * |
input, |
|
|
int |
numberOfFrames, |
|
|
FX * |
fx = 0 |
|
) |
| |
Processes the audio.
It's never blocking for real-time usage. You can change any properties concurrently with process().
- Returns
- Returns with a pointer to floating point numbers, which is the output with numberOfFrames audio available in it. It is valid until the next call to process().
- Parameters
-
input | Pointer to floating point numbers. 32-bit interleaved stereo input. Special case: set to NULL to empty all buffered content. |
numberOfFrames | Number of frames to input and output. |
fx | Optional. If NULL, then simple memory copy will be used to pass audio from input to the internal buffer. If not NULL, fx->process() will be used to pass audio from input to the internal buffer. |
◆ delayMs
float Superpowered::Delay::delayMs |
◆ internals
delayInternals* Superpowered::Delay::internals |
|
private |
◆ samplerate
unsigned int Superpowered::Delay::samplerate |
The documentation for this class was generated from the following file:
- latest/Superpowered/SuperpoweredDelay.h