Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/MultithreadedPatching.h |
Include |
#include "DSP/MultithreadedPatching.h" |
struct FPatchOutput
This class can be thought of as an output for a single constructed instance of FPatchInput. Each FPatchOutput can only be connected to one FPatchInput. To route multiple outputs, see FPatchSplitter. To route multiple inputs, see FPatchMixer.
Example usage:
FPatchOutputStrongPtr NewOutput(new FPatchOutput(4096)); FPatchInput NewInput(NewOutput);
On one thread, push audio to the output: NewInput.PushAudio(AudioBufferPtr, AudioBufferNumSamples);
and on a seperate thread, retrieve the audio: NewOutput->PopAudio(OutAudioBufferPtr, AudioBufferNumSamples);
Name | Description | |
---|---|---|
|
FPatchOutput() |
The default constructor will result in an uninitialized, disconnected patch point, which |
|
FPatchOutput ( |
Name | Description | ||
---|---|---|---|
|
GetNumSamplesAvailable() |
Returns the current number of samples buffered on this output. |
|
|
IsInputStale() |
Returns true if the input for this patch has been destroyed. |
|
|
MixInAudio |
Sums the minimum of NumSamples or however many samples are available into OutBuffer. |
|
|
PopAudio |
Copies the minimum of NumSamples or however many samples are available into OutBuffer. |
Name |
Description |
---|---|
PatchIDCounter |