2020-07-14 17:58:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#include "MetasoundEngineModule.h"
|
|
|
|
|
|
2020-07-15 00:16:40 -04:00
|
|
|
#include "Metasound.h"
|
2020-07-27 12:04:22 -04:00
|
|
|
#include "MetasoundArchetypeRegistration.h"
|
2020-07-23 20:32:26 -04:00
|
|
|
#include "MetasoundSource.h"
|
2020-07-15 00:01:50 -04:00
|
|
|
#include "Modules/ModuleManager.h"
|
2020-08-06 16:10:06 -04:00
|
|
|
#include "MetasoundWave.h"
|
|
|
|
|
#include "MetasoundDataTypeRegistrationMacro.h"
|
2020-07-15 00:16:40 -04:00
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
DEFINE_LOG_CATEGORY(LogMetasoundEngine);
|
|
|
|
|
|
2020-08-06 16:10:06 -04:00
|
|
|
namespace Metasound
|
|
|
|
|
{
|
2020-08-13 19:07:41 -04:00
|
|
|
REGISTER_METASOUND_DATATYPE(FWaveAsset, "Primitive:WaveAsset", ::Metasound::ELiteralArgType::UObjectProxy, USoundWave)
|
2020-08-06 16:10:06 -04:00
|
|
|
}
|
|
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
class FMetasoundEngineModule : public IMetasoundEngineModule
|
|
|
|
|
{
|
|
|
|
|
virtual void StartupModule() override
|
|
|
|
|
{
|
2020-07-23 20:32:26 -04:00
|
|
|
Metasound::Frontend::RegisterArchetype<UMetasoundSource>();
|
|
|
|
|
Metasound::Frontend::RegisterArchetype<UMetasound>();
|
|
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
UE_LOG(LogMetasoundEngine, Log, TEXT("Metasound Engine Initialized"));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FMetasoundEngineModule, MetasoundEngine);
|