Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/MultithreadedPatching.h |
Include |
#include "DSP/MultithreadedPatching.h" |
class FPatchMixer
This class is used for retrieving and mixing down audio from multiple threads. Important to
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.
Name | Description | |
---|---|---|
|
FPatchMixer() |
Constructor. |
Name | Description | ||
---|---|---|---|
|
AddNewInput ( |
Adds a new input to the tap collector. |
|
|
DisconnectAllInputs() |
Disconnect everything currently connected to this mixer. |
|
|
MaxNumberOfSamplesThatCanBePopped() |
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. |
|
|
Num() |
This returns the number of inputs currently connected to this patch mixer. |
|
|
PopAudio |
Mixes all inputs into a single buffer. |
|
|
RemovePatch ( |
Removes a tap from the tap collector. |