Files
UnrealEngineUWP/Engine/Source/Runtime/AudioCodecEngine/Private/DecoderBackCompat.h
jimmy smith 39745ac8ae WavePlayer Backcompat with old ICompressedAudioInfo
#rb ethan.geller phil.popp aaron.mcleran
#jira UEAU-591

[CL 14275071 by jimmy smith in ue5-main branch]
2020-09-08 18:12:55 -04:00

46 lines
956 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IAudioCodec.h"
namespace Audio
{
struct FBackCompatCodec : public ICodec
{
// Static version.
static const FCodecDetails& GetDetailsStatic();
// Query.
bool SupportsPlatform(FName InPlatformName) const override;
const FCodecDetails& GetDetails() const override;
// Factory for decoders
FDecoderPtr CreateDecoder(
IDecoder::FDecoderInputPtr InSrc,
IDecoder::FDecoderOutputPtr InDst) override;
};
struct FBackCompat : public IDecoder
{
IDecoder::FDecoderInputPtr Src = nullptr;
IDecoder::FDecoderOutputPtr Dst = nullptr;
FFormatDescriptorSection Desc;
IDecoderOutput::FRequirements Reqs;
TArray<int16> ResidualBuffer;
uint32 FrameOffset = 0;
FBackCompat(
IDecoder::FDecoderInputPtr InSrc,
IDecoder::FDecoderOutputPtr InDst );
bool HasError() const override
{
return false;
}
FDecodeReturn Decode() override;
};
}