FPatchMixerSplitter

This class is used to mix multiple inputs from disparate threads to a single mixdown and deliver that mixdown to multiple outputs.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/MultithreadedPatching.h

Include

#include "DSP/MultithreadedPatching.h"

Syntax

class FPatchMixerSplitter

Remarks

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 MPCMC, but only one thread can and should call ProcessAudio().

Constructors

Name Description

Public function

FPatchMixerSplitter()

Constructor.

Destructors

Name Description

Public function Virtual

~FPatchMixerSplitter()

The destructor will mark every still connected FPatchOutput as stale.

Functions

Name Description

Public function

FPatchInput

 

AddNewInput

(
    int32 MaxLatencyInSamples,
    float InGain
)

Adds a new input to the tap collector.

Public function

FPatchOutput...

 

AddNewOutput

(
    int32 MaxLatencyInSamples,
    float InGain
)

Adds a new output.

Protected function Virtual

void

 

OnProcessAudio

(
    TArrayView< const float > InAudio
)

This class can be subclassed with OnProcessAudio overridden.

Public function

void

 

ProcessAudio()

Mixes audio from all inputs and pushes it to all outputs. Should be called regularly.

Public function

void

 

RemovePatch

(
    const FPatchInput& TapInput
)

Removes a tap from the tap collector.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss