You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb alfaroh.corney jake.burga #jira none #preflight 6477eaae1c5c2b3fa2e4e53d [CL 25770939 by jimmy smith in ue5-main branch]
34 lines
781 B
C++
34 lines
781 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
#include "IAudioCodecRegistry.h"
|
|
#include "DecoderBackCompat.h"
|
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
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);
|
|
}
|
|
}
|
|
};
|
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
|
|
|
IMPLEMENT_MODULE(FAudioCodecEngineModule, AudioCodecEngine);
|