Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/MultithreadedPatching.h |
| Include | #include "DSP/MultithreadedPatching.h" |
Syntax
class FPatchSplitter
Remarks
This class is used to post audio from one source to multiple threads. This class is SPMC: multiple threads can call FPatchOutputStrongPtr->PopAudio safely, but only one thread can call PushAudio.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddNewPatch
(
FPatchOutputStrongPtr&& InPatchOutputStrongPtr |
Adds a new a patch from an existing patch output. | |
| void | AddNewPatch
(
const FPatchOutputStrongPtr& InPatchOutputStrongPtr |
Adds a new output. | |
| FPatchOutputStrongPtr | AddNewPatch
(
int32 MaxLatencyInSamples, |
Adds a new output. | |
| int32 | This function call gets the maximum number of samples that's safe to push. | ||
| int32 | Num () |
This returns the number of outputs currently connected to this patch splitter. | |
| int32 | PushAudio
(
const float* InBuffer, |
This call pushes audio to all outputs connected to this splitter. |