Navigation
API > API/Plugins > API/Plugins/MetasoundEngine
This Metasound type can be played as an audio source.
| Name | UMetaSoundSource |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundSource.h |
| Include Path | #include "MetasoundSource.h" |
Syntax
UCLASS (MinimalAPI, HideCategories=object, BlueprintType, Meta=(DisplayName="MetaSound Source"))
class UMetaSoundSource :
public USoundWaveProcedural ,
public FMetasoundAssetBase ,
public IMetaSoundDocumentInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USoundBase → USoundWave → USoundWaveProcedural → UMetaSoundSource
Implements Interfaces
- IAudioProxyDataFactory
- IAudioPropertiesSheetAssetUserInterface
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- IMetaSoundDocumentInterface
- IInterface
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMetaSoundSource
(
const FObjectInitializer& ObjectInitializer |
MetasoundSource.h |
Classes
| Name | Remarks |
|---|---|
| FAudioParameterCollector |
Structs
| Name | Remarks |
|---|---|
| FRuntimeInput | FRuntimeInput represents an input to a MetaSound which can be manipulated. |
| FRuntimeInputData |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetClassID | FGuid | MetasoundSource.h |
|
|
| bIsPreset | bool | MetasoundSource.h |
|
|
| BlockRateOverride | FPerPlatformFloat | Override the BlockRate for this Sound (overrides Quality). NOTE: A Zero value will have no effect and use either the Quality setting (if set), or the defaults. | MetasoundSource.h |
|
| OnGeneratorInstanceCreated | PRAGMA_DISABLE_DEPRECATION_WARNINGSFOnGeneratorInstanceCreated | MetasoundSource.h | ||
| OnGeneratorInstanceDestroyed | FOnGeneratorInstanceDestroyed | MetasoundSource.h | ||
| OnGeneratorInstanceInfoCreated | FGeneratorInstanceInfoDelegate | MetasoundSource.h | ||
| OnGeneratorInstanceInfoDestroyed | FGeneratorInstanceInfoDelegate | MetasoundSource.h | ||
| OutputFormat | EMetaSoundOutputAudioFormat | The output audio format of the metasound source. | MetasoundSource.h |
|
| QualitySetting | FName | The QualitySetting MetaSound will use, as defined in 'MetaSound' Settings. | MetasoundSource.h |
|
| QualitySettingGuid | FGuid | This a editor only look up for the Quality Setting above. Preventing orphaning of the original name. | MetasoundSource.h | |
| RegistryInputTypes | FString | MetasoundSource.h |
|
|
| RegistryOutputTypes | FString | MetasoundSource.h |
|
|
| RegistryVersionMajor | int32 | MetasoundSource.h |
|
|
| RegistryVersionMinor | int32 | MetasoundSource.h |
|
|
| SampleRateOverride | FPerPlatformInt | Override the SampleRate for this Sound (overrides Quality). NOTE: A Zero value will have no effect and use either the Quality setting (if set), or the Device Rate. | MetasoundSource.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsBuilderActive | bool | MetasoundSource.h | ||
| bIsPresetGraphInflationSupported | bool | Preset graph inflation is a performance optimization intended for use with the MetaSoundOperatorPool. | MetasoundSource.h | |
| CachedAudioDeviceSampleRate | Metasound::FSampleRate | Cache the AudioDevice Samplerate. (so that if we have to regenerate operator settings without the device rate we can use this). | MetasoundSource.h | |
| CookedQualitySettings | TPimplPtr< Metasound::SourcePrivate::FCookedQualitySettings > | MetasoundSource.h | ||
| DynamicTransactor | TSharedPtr< Metasound::DynamicGraph::FDynamicOperatorTransactor > | MetasoundSource.h | ||
| GeneratorMapCriticalSection | FCriticalSection | MetasoundSource.h | ||
| Generators | TArray< Metasound::FGeneratorInstanceInfo > | MetasoundSource.h | ||
| RuntimeInputData | FRuntimeInputData | MetasoundSource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
Metasound::FMetasoundEnvironment CreateEnvironment
(
const FSoundGeneratorInitParams& InParams |
MetasoundSource.h | ||
const UMetaSoundSource & FindFirstNoninflatableSource
(
Metasound::FMetasoundEnvironment& InOutEnvironment, |
Find the Source related to this Preset. | MetasoundSource.h | |
TWeakPtr< Metasound::FMetasoundGenerator > GetGeneratorForAudioComponent
(
uint64 ComponentId |
Attempt to get a generator for a given AudioComponentID. | MetasoundSource.h | |
TWeakPtr< Metasound::FMetasoundGenerator > GetGeneratorForInstanceID
(
uint64 InstanceId |
Attempt to get a generator for a given InstanceID. | MetasoundSource.h | |
Metasound::FOperatorSettings GetOperatorSettings
(
Metasound::FSampleRate InDeviceSampleRate |
MetasoundSource.h | ||
const TArray< Metasound::FVertexName > & GetOutputAudioChannelOrder() |
MetasoundSource.h | ||
bool IsDynamic() |
MetasoundSource.h | ||
void PostLoadQualitySettings() |
MetasoundSource.h |
Overridden from USoundWave
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanVisualizeAsset() |
MetasoundSource.h | ||
virtual bool GetRedrawThumbnail() |
MetasoundSource.h | ||
virtual void OnEndGenerate
(
ISoundGeneratorPtr Generator |
MetasoundSource.h | ||
virtual void SetRedrawThumbnail
(
bool bInRedraw |
MetasoundSource.h |
Overridden from USoundBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< Audio::IParameterTransmitter > CreateParameterTransmitter
(
Audio::FParameterTransmitterInitParams&& InParams |
MetasoundSource.h | ||
virtual ISoundGeneratorPtr CreateSoundGenerator
(
const FSoundGeneratorInitParams& InParams, |
MetasoundSource.h | ||
virtual bool EnableSubmixSendsOnPreview() |
MetasoundSource.h | ||
virtual float GetDuration() |
MetasoundSource.h | ||
virtual bool ImplementsParameterInterface
(
Audio::FParameterInterfacePtr InInterface |
MetasoundSource.h | ||
virtual void InitParameters
(
TArray< FAudioParameter >& ParametersToInit, |
MetasoundSource.h | ||
virtual void InitResources() |
MetasoundSource.h | ||
virtual bool IsLooping() |
MetasoundSource.h | ||
virtual bool IsOneShot() |
MetasoundSource.h | ||
virtual bool IsParameterValid
(
const FAudioParameter& InParameter |
MetasoundSource.h | ||
virtual bool IsPlayable() |
MetasoundSource.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
MetasoundSource.h | ||
virtual bool CanEditChange
(
const FProperty* InProperty |
MetasoundSource.h | ||
virtual void GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
MetasoundSource.h | ||
virtual EDataValidationResult IsDataValid
(
FDataValidationContext& Context |
MetasoundSource.h | ||
virtual void PostDuplicate
(
EDuplicateMode::Type InDuplicateMode |
MetasoundSource.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& InEvent |
MetasoundSource.h | ||
virtual void PostEditUndo() |
MetasoundSource.h | ||
virtual void PostLoad() |
MetasoundSource.h | ||
virtual void PreDuplicate
(
FObjectDuplicationParameters& DupParams |
MetasoundSource.h | ||
virtual void PreSave
(
FObjectPreSaveContext InSaveContext |
MetasoundSource.h | ||
virtual void Serialize
(
FArchive& Ar |
MetasoundSource.h |
Overridden from FMetasoundAssetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const TSet< FSoftObjectPath > & GetAsyncReferencedAssetClassPaths() |
MetasoundSource.h | ||
virtual FText GetDisplayName() |
Name to display in editors. | MetasoundSource.h | |
| Returns the graph associated with this Metasound. | MetasoundSource.h | ||
virtual UEdGraph & GetGraphChecked() |
MetasoundSource.h | ||
virtual UObject * GetOwningAsset () |
MetasoundSource.h | ||
virtual const UObject * GetOwningAsset () |
MetasoundSource.h | ||
virtual const TSet< FString > & GetReferencedAssetClassKeys() |
MetasoundSource.h | ||
virtual TArray< FMetasoundAssetBase * > GetReferencedAssets() |
MetasoundSource.h | ||
virtual void MigrateEditorGraph
(
FMetaSoundFrontendDocumentBuilder& OutBuilder |
MetasoundSource.h | ||
virtual void OnAsyncReferencedAssetsLoaded
(
const TArray< FMetasoundAssetBase* >& InAsyncReferences |
MetasoundSource.h | ||
| Sets the graph associated with this Metasound. | MetasoundSource.h | ||
virtual void UpdateAndRegisterForExecution
(
Metasound::Frontend::FMetaSoundAssetRegistrationOptions InRegistrationOptions |
MetasoundSource.h |
Overridden from IMetaSoundDocumentInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ConformObjectToDocument() |
MetasoundSource.h | ||
virtual FTopLevelAssetPath GetAssetPathChecked() |
MetasoundSource.h | ||
virtual const UClass & GetBaseMetaSoundUClass() |
MetasoundSource.h | ||
virtual const UClass & GetBuilderUClass() |
MetasoundSource.h | ||
virtual const FMetasoundFrontendDocument & GetConstDocument() |
MetasoundSource.h | ||
virtual bool IsActivelyBuilding() |
MetasoundSource.h |
Protected
Overridden from USoundBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool GetAllDefaultParameters
(
TArray< FAudioParameter >& OutParameters |
Gets all the default parameters for this Asset. | MetasoundSource.h |
Overridden from FMetasoundAssetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual is particularly problematic as in so the builder s caches are reset which can cause major editor performance regressions Metasound::Frontend::FDocumentAccessPtr GetDocumentAccessPtr() |
MetasoundSource.h | ||
virtual Metasound::Frontend::FConstDocumentAccessPtr GetDocumentConstAccessPtr() |
MetasoundSource.h | ||
virtual void SetReferencedAssets
(
TSet< Metasound::Frontend::IMetaSoundAssetManager::FAssetRef >&& InAssetRefs |
MetasoundSource.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FRuntimeInput CreateRuntimeInput
(
const Metasound::Frontend::IDataTypeRegistry& Registry, |
MetasoundSource.h | ||
static FName GetDocumentPropertyName() |
Returns document name (for editor purposes, and avoids making document public for edit while allowing editor to reference directly) | MetasoundSource.h | |
static Metasound::SourcePrivate::FParameterRouter & GetParameterRouter() |
MetasoundSource.h |