2020-09-08 18:12:55 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "DecoderInputFactory.h"
|
|
|
|
|
#include "DecoderInputBackCompat.h"
|
|
|
|
|
#include "IAudioCodec.h"
|
|
|
|
|
#include "Sound/SoundWave.h"
|
|
|
|
|
|
|
|
|
|
namespace Audio
|
|
|
|
|
{
|
2023-06-02 15:27:25 -04:00
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
|
|
2020-09-08 18:12:55 -04:00
|
|
|
TUniquePtr<Audio::IDecoderInput> CreateBackCompatDecoderInput(
|
|
|
|
|
FName InOldFormatName,
|
2021-02-26 02:30:51 -04:00
|
|
|
const FSoundWaveProxyPtr& InSoundWave)
|
2020-09-08 18:12:55 -04:00
|
|
|
{
|
2021-02-26 02:30:51 -04:00
|
|
|
if (ensure(InSoundWave.IsValid()))
|
|
|
|
|
{
|
|
|
|
|
return MakeUnique<FBackCompatInput>(InOldFormatName, InSoundWave);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nullptr;
|
2020-09-08 18:12:55 -04:00
|
|
|
}
|
2023-06-02 15:27:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
2020-09-08 18:12:55 -04:00
|
|
|
}
|