FMixerDevice::Get2DChannelMap

Builds a channel gain matrix for a non-spatialized source. The non-static variation of this function queries AudioMixerDevice->NumOutputChannels directly which may not be thread safe.

Choose your operating system:

Windows

macOS

Linux

References

Module

AudioMixer

Header

/Engine/Source/Runtime/AudioMixer/Public/AudioMixerDevice.h

Include

#include "AudioMixerDevice.h"

Source

/Engine/Source/Runtime/AudioMixer/Private/AudioMixerChannelMaps.cpp

Syntax

static void Get2DChannelMap
(
    bool bIsVorbis,
    const int32 NumSourceChannels,
    const int32 NumOutputChannels,
    const bool bIsCenterChannelOnly,
    Audio::FAlignedFloatBuffer & OutChannelMap
)

Remarks

Builds a channel gain matrix for a non-spatialized source. The non-static variation of this function queries AudioMixerDevice->NumOutputChannels directly which may not be thread safe.