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-11-04 14:26:37 -04:00
|
|
|
#include "MetasoundDataReference.h"
|
2020-08-06 16:10:06 -04:00
|
|
|
#include "MetasoundDataTypeRegistrationMacro.h"
|
2020-12-14 15:48:27 -04:00
|
|
|
#include "MetasoundSource.h"
|
|
|
|
|
#include "MetasoundUObjectRegistry.h"
|
|
|
|
|
#include "MetasoundWave.h"
|
|
|
|
|
#include "Modules/ModuleManager.h"
|
2020-07-15 00:16:40 -04:00
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
DEFINE_LOG_CATEGORY(LogMetasoundEngine);
|
|
|
|
|
|
2021-01-23 12:59:01 -04:00
|
|
|
REGISTER_METASOUND_DATATYPE(Metasound::FWaveAsset, "WaveAsset", Metasound::ELiteralType::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-12-14 15:48:27 -04:00
|
|
|
// If there is no archetype name, use UMetasound
|
|
|
|
|
Metasound::IMetasoundUObjectRegistry::RegisterUClassArchetype<UMetasound>(TEXT(""));
|
|
|
|
|
|
|
|
|
|
// Register preferred archetypes
|
|
|
|
|
Metasound::IMetasoundUObjectRegistry::RegisterUClassPreferredArchetypes<UMetasoundSource>();
|
2020-07-23 20:32:26 -04:00
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
UE_LOG(LogMetasoundEngine, Log, TEXT("Metasound Engine Initialized"));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FMetasoundEngineModule, MetasoundEngine);
|