Files
UnrealEngineUWP/Engine/Source/Runtime/AudioCodecEngine/Private/AudioCodecEngineModule.cpp
jimmy smith 39745ac8ae WavePlayer Backcompat with old ICompressedAudioInfo
#rb ethan.geller phil.popp aaron.mcleran
#jira UEAU-591

[CL 14275071 by jimmy smith in ue5-main branch]
2020-09-08 18:12:55 -04:00

30 lines
708 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Modules/ModuleManager.h"
#include "IAudioCodecRegistry.h"
#include "DecoderBackCompat.h"
class FAudioCodecEngineModule : public IModuleInterface
{
public:
void StartupModule() override
{
Audio::ICodecRegistry::Get().RegisterCodec(
MakeUnique<Audio::FBackCompatCodec>()
);
}
void ShutdownModule() override
{
using namespace Audio;
if (ICodecRegistry::FCodecPtr Codec = ICodecRegistry::Get().FindCodecByName(
FBackCompatCodec::GetDetailsStatic().Name,
FBackCompatCodec::GetDetailsStatic().Version))
{
ICodecRegistry::Get().UnregisterCodec(Codec);
}
}
};
IMPLEMENT_MODULE(FAudioCodecEngineModule, AudioCodecEngine);