FBaseChannelFormatConverter::SetMixGain

Sets the gain scalar to apply to a specific input/output channel pair.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

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

Include

#include "DSP/AudioChannelFormatConverter.h"

Source

/Engine/Source/Runtime/SignalProcessing/Private/AudioChannelFormatConverter.cpp

Syntax

void SetMixGain
(
    int32 InInputChannelIndex,
    int32 InOutputChannelIndex,
    float InGain,
    bool bFadeToGain
)

Remarks

Sets the gain scalar to apply to a specific input/output channel pair.

Parameters

Parameter

Description

InInputChannelIndex

The index of the source channel audio.

InOutputChannelIndex

The index of the destination channel audio.

InGain

The scalar gain to apply to the source channel before adding it to the destination channel.

bFadeToGain

If true, gain values are linearly faded over the duration of a single buffer. If false, gain values are applied immediately.

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