![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MultithreadedPatching.h>
Public Member Functions | |
| SIGNALPROCESSING_API | FPatchInput (const FPatchOutputStrongPtr &InOutput) |
| SIGNALPROCESSING_API | FPatchInput (const FPatchInput &Other) |
| SIGNALPROCESSING_API FPatchInput & | operator= (const FPatchInput &Other) |
| SIGNALPROCESSING_API FPatchInput & | operator= (FPatchInput &&Other) |
| SIGNALPROCESSING_API | FPatchInput (FPatchInput &&Other) |
| FPatchInput ()=default | |
| SIGNALPROCESSING_API | ~FPatchInput () |
| SIGNALPROCESSING_API int32 | PushAudio (const float *InBuffer, int32 NumSamples) |
| SIGNALPROCESSING_API void | ClearAudio () |
| SIGNALPROCESSING_API int32 | GetNumSamplesAvailable () const |
| SIGNALPROCESSING_API void | SetGain (float InGain) |
| SIGNALPROCESSING_API bool | IsOutputStillActive () const |
| SIGNALPROCESSING_API bool | IsValid () const |
| SIGNALPROCESSING_API void | Reset () |
Friends | |
| class | FPatchMixer |
| class | FPatchSplitter |
Handle to a patch. Should only be used by a single thread.
| Audio::FPatchInput::FPatchInput | ( | const FPatchOutputStrongPtr & | InOutput | ) |
PatchInputs can only be created from explicit outputs.
| Audio::FPatchInput::FPatchInput | ( | const FPatchInput & | Other | ) |
| Audio::FPatchInput::FPatchInput | ( | FPatchInput && | Other | ) |
|
default |
Default constructed FPatchInput instances will always return -1 for PushAudio and true for IsOutputStillActive.
| Audio::FPatchInput::~FPatchInput | ( | ) |
| void Audio::FPatchInput::ClearAudio | ( | ) |
Clears any audio queued up in the patch.
| int32 Audio::FPatchInput::GetNumSamplesAvailable | ( | ) | const |
Returns the current number of samples buffered in this input.
| bool Audio::FPatchInput::IsOutputStillActive | ( | ) | const |
Returns false if this output was removed, either because someone called FPatchMixer::RemoveTap with this FPatchInput, or the FPatchMixer was destroyed.
| bool Audio::FPatchInput::IsValid | ( | ) | const |
Returns false if this output was not initialized properly.
| FPatchInput & Audio::FPatchInput::operator= | ( | const FPatchInput & | Other | ) |
| FPatchInput & Audio::FPatchInput::operator= | ( | FPatchInput && | Other | ) |
Pushes audio from InBuffer to the corresponding FPatchOutput. Pushes zeros if InBuffer is nullptr. Returns how many samples were able to be pushed, or -1 if the output was disconnected.
| void Audio::FPatchInput::Reset | ( | ) |
|
friend |
|
friend |