Files
UnrealEngineUWP/Engine/Source/Runtime/AudioCodecEngine/Private/DecoderInputFactory.cpp
jimmy smith d256cc1f44 Deprecate IAudioCodec API
#rb alfaroh.corney jake.burga
#jira none
#preflight 6477eaae1c5c2b3fa2e4e53d

[CL 25770939 by jimmy smith in ue5-main branch]
2023-06-02 15:27:25 -04:00

27 lines
546 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DecoderInputFactory.h"
#include "DecoderInputBackCompat.h"
#include "IAudioCodec.h"
#include "Sound/SoundWave.h"
namespace Audio
{
PRAGMA_DISABLE_DEPRECATION_WARNINGS
TUniquePtr<Audio::IDecoderInput> CreateBackCompatDecoderInput(
FName InOldFormatName,
const FSoundWaveProxyPtr& InSoundWave)
{
if (ensure(InSoundWave.IsValid()))
{
return MakeUnique<FBackCompatInput>(InOldFormatName, InSoundWave);
}
return nullptr;
}
PRAGMA_ENABLE_DEPRECATION_WARNINGS
}