FBaseChannelFormatConverter

[FBaseChannelFormatConverter](API\Runtime\SignalProcessing\DSP\FBaseChannelFormatConverter) implements channel conversion using a simple mixing matrix.

Windows
MacOS
Linux

Inheritance Hierarchy

IChannelFormatConverter

FBaseChannelFormatConverter

References

Module

SignalProcessing

Header

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

Include

#include "DSP/AudioChannelFormatConverter.h"

Syntax

class FBaseChannelFormatConverter : public Audio::IChannelFormatConverter

Remarks

FBaseChannelFormatConverter implements channel conversion using a simple mixing matrix.

Constructors

Name Description

Protected function

FBaseChannelFormatConverter

(
    const FInputFormat& InInputFormat,
    const FOutputFormat& InOutputForma...,
    TArrayView < const FChannelMixEntry ...,
    int32 InNumFramesPerCall
)

Destructors

Functions

Name Description

Public function Static

TUniquePtr < ...

 

CreateBaseFormatConverter

(
    const FInputFormat& InInputFormat,
    const FOutputFormat& InOutputForma...,
    TArrayView < const FChannelMixEntry ...,
    int32 InNumFramesPerCall
)

Create a FBaseChannelFormatConverter

Public function Const

float

 

GetTargetMixGain

(
    int32 InInputChannelIndex,
    int32 InOutputChannelIndex
)

Returns the scalar gain used to mix the input channel index into the output channel index.

Public function Const

float

 

GetTargetOutputGain()

Returns the scalar gain applied to the output audio.

Public function

void

 

SetMixGain

(
    const FChannelMixEntry & InEntry,
    bool bFadeToGain
)

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

Public function

void

 

SetMixGain

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

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

Public function

void

 

SetOutputGain

(
    float InOutputGain,
    bool bFadeToGain
)

Sets the output gain scalar to apply to all output audio.

Overridden from IChannelFormatConverter

Name Description

Public function Virtual Const

const FInput...

 

GetInputFormat()

Return the input format handled by this converter.

Public function Virtual Const

const FOutpu...

 

GetOutputFormat()

Return the output format handled by this converter.

Public function Virtual

void

 

ProcessAudio

(
    const TArray < AlignedFloatBuffer > ...,
    TArray < AlignedFloatBuffer >& OutO...
)

Converter the audio format from the FInputFormat to the FOutputFormat.

Classes

Name

Description

Public struct

FChannelMixEntry

FChannelMixEntry denotes how an input channel should be mixed into an output channel.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback