You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb alfaroh.corney jake.burga #jira none #preflight 6477eaae1c5c2b3fa2e4e53d [CL 25770939 by jimmy smith in ue5-main branch]
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IAudioCodec.h"
|
|
|
|
namespace Audio
|
|
{
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
struct UE_DEPRECATED(5.3, "Please use IAudioFormat/IStreamedCompressedInfo instead") 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 UE_DEPRECATED(5.3, "Please use IAudioFormat/IStreamedCompressedInfo instead") 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(bool bLoop = false) override;
|
|
|
|
private:
|
|
bool bPreviousIsStreaming = false;
|
|
bool bIsFirstDecode = true;
|
|
};
|
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
|
}
|