You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb aaron.mcleran #jira UE-112972 #lockdown nick.whiting #ROBOMERGE-SOURCE: CL 15986365 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533) [CL 15991431 by rob gay in ue5-main branch]
55 lines
1.9 KiB
C++
55 lines
1.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MetasoundPrimitives.h"
|
|
|
|
#include "MetasoundAudioBuffer.h"
|
|
#include "MetasoundDataTypeRegistrationMacro.h"
|
|
#include "MetasoundRouter.h"
|
|
#include "MetasoundTime.h"
|
|
#include "MetasoundTrigger.h"
|
|
|
|
#include <type_traits>
|
|
|
|
namespace Metasound
|
|
{
|
|
// Disable audio buffer arrays.
|
|
template<>
|
|
struct TEnableAutoArrayTypeRegistration<FAudioBuffer>
|
|
{
|
|
static constexpr bool Value = false;
|
|
};
|
|
|
|
// Disable arrays of triggers
|
|
template<>
|
|
struct TEnableAutoArrayTypeRegistration<FTrigger>
|
|
{
|
|
static constexpr bool Value = false;
|
|
};
|
|
|
|
// Disable auto-conversion using the FAudioBuffer(int32) constructor
|
|
template<typename FromDataType>
|
|
struct TEnableAutoConverterNodeRegistration<FromDataType, FAudioBuffer>
|
|
{
|
|
static constexpr bool Value = !std::is_arithmetic<FromDataType>::value;
|
|
};
|
|
|
|
// Disable auto-conversions based on FTrigger implicit converters
|
|
template<typename ToDataType>
|
|
struct TEnableAutoConverterNodeRegistration<FTrigger, ToDataType>
|
|
{
|
|
static constexpr bool Value = !std::is_arithmetic<ToDataType>::value;
|
|
};
|
|
}
|
|
|
|
REGISTER_METASOUND_DATATYPE(bool, "Bool", ::Metasound::ELiteralType::Boolean)
|
|
REGISTER_METASOUND_DATATYPE(int32, "Int32", ::Metasound::ELiteralType::Integer)
|
|
//REGISTER_METASOUND_DATATYPE(int64, "Int64", ::Metasound::ELiteralType::Integer)
|
|
REGISTER_METASOUND_DATATYPE(float, "Float", ::Metasound::ELiteralType::Float)
|
|
//REGISTER_METASOUND_DATATYPE(double, "Double", ::Metasound::ELiteralType::Float)
|
|
REGISTER_METASOUND_DATATYPE(FString, "String", ::Metasound::ELiteralType::String)
|
|
|
|
REGISTER_METASOUND_DATATYPE(Metasound::FTrigger, "Trigger", ::Metasound::ELiteralType::Boolean)
|
|
REGISTER_METASOUND_DATATYPE(Metasound::FTime, "Time", ::Metasound::ELiteralType::Float)
|
|
REGISTER_METASOUND_DATATYPE(Metasound::FAudioBuffer, "Audio")
|
|
REGISTER_METASOUND_DATATYPE(Metasound::FSendAddress, "Transmission:Address", ::Metasound::ELiteralType::String)
|