Files
UnrealEngineUWP/Engine/Source/Runtime/AudioCodecEngine/Private/DecoderInputFactory.cpp

27 lines
546 B
C++
Raw Normal View History

// 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
}