![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MultithreadedPatching.h>
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.
| void Audio::FPatchSplitter::AddNewPatch | ( | const FPatchOutputStrongPtr & | InPatchOutputStrongPtr | ) |
| void Audio::FPatchSplitter::AddNewPatch | ( | FPatchOutputStrongPtr && | InPatchOutputStrongPtr | ) |
Adds a new a patch from an existing patch output.
| FPatchOutputStrongPtr Audio::FPatchSplitter::AddNewPatch | ( | 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.
| int32 Audio::FPatchSplitter::MaxNumberOfSamplesThatCanBePushed | ( | ) |
This function call gets the maximum number of samples that's safe to push. Thread safe, but blocks for PushAudio.
| int32 Audio::FPatchSplitter::Num | ( | ) |
This returns the number of outputs currently connected to this patch splitter. Thread safe, but blocks for PushAudio.
This call pushes audio to all outputs connected to this splitter. Only should be called from one thread.