Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/AlignedBlockBuffer.h |
| Include | #include "DSP/AlignedBlockBuffer.h" |
Syntax
class FAlignedBlockBuffer
Remarks
First In First Out Buffer designed for audio buffers. Generally performs best when buffers are greater than 16 samples, optimally for buffers between 256 to 4096 samples. Memory operations are designed for audio applications by ensuring memory allocations only occur in the constructor or when capacity is altered, memory freeing only happens in the destructor or when capacity is altered. All assignments are performed using block memory copies.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAlignedBlockBuffer
(
int32 InSampleCapacity, |
Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSamples
(
const float* InSamples, |
Add samples to the buffer. | |
| void | AddZeros
(
int32 InNum |
Add zeros to the buffer. | |
| float * | AllocateAlignedFloatArray
(
int32 InNum |
||
| void | ClearSamples () |
Clear entire buffer. | |
| void | CopyFloatArray
(
float* ToArray, |
||
| void | FreeFloatArray
(
float*& Array |
||
| int32 | Maximum number of elements that can be inspected. | ||
| int32 | Amount of samples left over in buffer. | ||
| int32 | Maximum size of buffer. | ||
| const float * | InspectSamples
(
int32 InNum, |
Inspect samples in the buffer. | |
| void | RemoveSamples
(
int32 InNum |
Remove samples from the buffer. | |
| void | SetMaxNumInspectSamples
(
int32 InMax |
Set the maximum number of elements that can be inspected. | |
| void | ZeroFloatArray
(
float* InArray, |