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 FPatchMixer
Remarks
This class is used for retrieving and mixing down audio from multiple threads. Important to note that this is MPSC: while multiple threads can enqueue audio on an instance of FPatchMixer using instances of FPatchInput, only one thread can call PopAudio safely.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddNewInput
(
const FPatchInput& InPatchInput |
Adds an existing patch input to the patch mixer. | |
| FPatchInput | AddNewInput
(
int32 MaxLatencyInSamples, |
Adds a new input to the tap collector. | |
| void | Disconnect everything currently connected to this mixer. | ||
| int32 | This function call gets the maximum number of samples that's safe to pop, based on the thread with the least amount of samples buffered. | ||
| int32 | Num () |
This returns the number of inputs currently connected to this patch mixer. | |
| int32 | PopAudio
(
float* OutBuffer, |
Mixes all inputs into a single buffer. | |
| void | RemovePatch
(
const FPatchInput& InPatchInput |
Removes a tap from the tap collector. | |
| bool | WaitUntilNumSamplesAvailable
(
int32 NumSamples, |
Pauses the current thread until there are the given number of samples available to pop. |