![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MultithreadedPatching.h>
This class is used to mix multiple inputs from disparate threads to a single mixdown and deliver that mixdown to multiple outputs. This class is MPMC, but only one thread can and should call ProcessAudio().
| void Audio::FPatchMixerSplitter::AddNewInput | ( | FPatchInput & | InInput | ) |
Adds a new a patch input from an existing patch input object.
| FPatchInput Audio::FPatchMixerSplitter::AddNewInput | ( | int32 | MaxLatencyInSamples, |
| float | InGain | ||
| ) |
Adds a new input to the tap collector. Calling this is thread safe, but individual instances of FPatchInput are only safe to be used from one thread.
| void Audio::FPatchMixerSplitter::AddNewOutput | ( | const FPatchOutputStrongPtr & | InPatchOutputStrongPtr | ) |
Adds a new a patch from an existing patch output.
| FPatchOutputStrongPtr Audio::FPatchMixerSplitter::AddNewOutput | ( | int32 | MaxLatencyInSamples, |
| float | InGain | ||
| ) |
Adds a new output. Calling this is thread safe, but individual instances of FPatchOutput are only safe to be used from one thread. the returned FPatchOutputPtr can be safely destroyed at any point.
| void Audio::FPatchMixerSplitter::ProcessAudio | ( | ) |
Mixes audio from all inputs and pushes it to all outputs. Should be called regularly.
| void Audio::FPatchMixerSplitter::RemovePatch | ( | const FPatchInput & | InInput | ) |
Removes a tap from the tap collector. Calling this is thread safe, though FPatchOutput will likely not be deleted until the next call of PopAudio.