Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP > API/Runtime/SignalProcessing/DSP/FBaseChannelFormatConverter > API/Runtime/SignalProcessing/DSP/FBaseChannelFormatConverter/SetMixGain
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 |
void SetMixGain
&40;
int32 InInputChannelIndex,
int32 InOutputChannelIndex,
float InGain,
bool bFadeToGain
&41;
Remarks
Sets the gain scalar to apply to a specific input/output channel pair.
Parameters
| Name | 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. |