Files
UnrealEngineUWP/Engine/Source/Runtime/AudioCodecEngine/Private/DecoderInputFactory.cpp
maxwell hayes fdbecb4db6 Follow-up refactor to address fallout from FSoundWaveProxy
#jira UE-108764, UE-109386, UE-108969, UEAU-691
#rb Phill.Popp

#ROBOMERGE-SOURCE: CL 15538813 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15538828 by maxwell hayes in ue5-main branch]
2021-02-26 02:30:51 -04:00

22 lines
468 B
C++

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