You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
30 lines
708 B
C++
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);
|