Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
Inheritance Hierarchy
- FDelay
- FDelayAPF
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/Delay.h |
| Include | #include "DSP/Delay.h" |
Syntax
class FDelay
Remarks
Circular Buffer Delay Line.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float * | AudioBuffer | Pointer to the circular buffer of audio. | |
| int32 | AudioBufferSize | Max length of buffer (in samples) | |
| float | DelayInSamples | Delay in samples; float supports fractional delay. | |
| FExponentialEase | EaseDelayMsec | Eased delay in msec. | |
| float | OutputAttenuation | Output attenuation value. | |
| float | OutputAttenuationDB | Attenuation in decibel. | |
| int32 | ReadIndex | Read index for circular buffer. | |
| float | SampleRate | Sample rate. | |
| int32 | WriteIndex | Write index for circular buffer. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDelay () |
Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FDelay () |
Virtual Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Returns the current delay line length (in samples). | ||
| void | Init
(
const float InSampleRate, |
Initialization of the delay with given sample rate and max buffer size in samples. | |
| float | ProcessAudioSample
(
const float InAudio |
Process audio in the delay line, return the delayed value. | |
| float | Read () |
Reads the delay line at current read index without writing or incrementing read/write pointers. | |
| float | ReadDelayAt
(
const float InReadMsec |
Reads the delay line at an arbitrary time in Msec without writing or incrementing read/write pointers. | |
| void | Reset () |
Resets the delay line state, flushes buffer and resets read/write pointers. | |
| void | SetDelayMsec
(
const float InDelayMsec |
Sets the delay line length. Will clamp to within range of the max initialized delay line length (won't resize). | |
| void | SetDelaySamples
(
const float InDelaySamples |
Same as SetDelayMsec, except in samples. | |
| void | SetEasedDelayMsec
(
const float InDelayMsec, |
Sets the delay line length but using the internal easing function for smooth delay line interpolation. | |
| void | SetEaseFactor
(
const float InEaseFactor |
Sets the easing factor for the delay line's internal exponential interpolator. | |
| void | SetOutputAttenuationDB
(
const float InDelayAttenDB |
Sets the output attenuation in DB. | |
| void | Update
(
bool bForce |
Updates delay line based on any recent changes to settings. | |
| void | WriteDelayAndInc
(
const float InDelayInput |
Write the input and increment read/write pointers. |