Navigation
API > API/Plugins > API/Plugins/ElectraDecoders
Class to map audio channels from some decoder-specific output order into the order expected by FMediaAudioResampler.
Channels that are not supported by UE will be ignored and are silent. No effort to mix them into other channels is made. As fas as media playback is concerned we handle the most common channel layouts only, like mono, stereo, 5.1 and 7.1.
| Name | FAudioChannelMapper |
| Type | class |
| Header File | /Engine/Plugins/Media/ElectraCodecs/Source/ElectraDecoders/Public/Utils/AudioChannelMapper.h |
| Include Path | #include "Utils/AudioChannelMapper.h" |
Syntax
class FAudioChannelMapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAudioChannelMapper() |
Utils/AudioChannelMapper.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAudioChannelMapper() |
Utils/AudioChannelMapper.h |
Structs
| Name | Remarks |
|---|---|
| FSourceLayout | / Channel position as per ISO/IEC 23001-8 Table 7. |
| FTargetSource |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCanCopyDirectly | bool | Utils/AudioChannelMapper.h | ||
| BytesPerSample | int32 | Utils/AudioChannelMapper.h | ||
| TargetSources | TArray< FTargetSource > | Utils/AudioChannelMapper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetNumTargetChannels() |
Gets the number of output channels mapped to the UE internal layout. | Utils/AudioChannelMapper.h | |
bool Initialize
(
TSharedPtr< IElectraDecoderAudioOutput, ESPMode::ThreadSafe > InSampleBlock |
Utils/AudioChannelMapper.h | ||
bool Initialize
(
int32 NumBytesPerSample, |
Initializes with an ISO/IEC 23001-8 channel configuration value from Table 7 (compatible with ISO/IEC 14496-3:2009/Amd 4) | Utils/AudioChannelMapper.h | |
bool Initialize
(
int32 NumBytesPerSample, |
Initializes with ISO/IEC 23001-8 channel positions. | Utils/AudioChannelMapper.h | |
bool IsInitialized() |
Utils/AudioChannelMapper.h | ||
void MapChannels
(
void* OutputBuffer, |
Maps the supported input channels to the output channels in UE internal layout. | Utils/AudioChannelMapper.h | |
void Reset() |
Utils/AudioChannelMapper.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CanBeCopiedDirectly
(
TArrayView< const FSourceLayout > ChannelPositions |
Utils/AudioChannelMapper.h |