Navigation
API > API/Plugins > API/Plugins/MetasoundEngine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USoundBase
- USoundWave
- USoundWaveProcedural
- UMetaSoundSource
References
| Module | MetasoundEngine |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundSource.h |
| Include | #include "MetasoundSource.h" |
Syntax
UCLASS&40;HideCategories&61;object, BlueprintType&41;
class UMetaSoundSource :
public USoundWaveProcedural,
public FMetasoundAssetBase,
public IMetaSoundDocumentInterface
Remarks
This Metasound type can be played as an audio source.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGuid | AssetClassID | ||
| bool | bIsPreset | ||
| TObjectPtr< UMetasoundEditorGraphBase > | Graph | ||
| FOnGeneratorInstanceCreated | OnGeneratorInstanceCreated | ||
| FOnGeneratorInstanceDestroyed | OnGeneratorInstanceDestroyed | ||
| EMetaSoundOutputAudioFormat | OutputFormat | The output audio format of the metasound source. | |
| TSet< FSoftObjectPath > | ReferenceAssetClassCache | ||
| TSet< FString > | ReferencedAssetClassKeys | ||
| TSet< TObjectPtr< UObject > > | ReferencedAssetClassObjects | ||
| FString | RegistryInputTypes | ||
| FString | RegistryOutputTypes | ||
| int32 | RegistryVersionMajor | ||
| int32 | RegistryVersionMinor | ||
| FMetasoundFrontendDocument | RootMetasoundDocument |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMetaSoundSource
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | Returns document name (for editor purposes, and avoids making document public for edit while allowing editor to reference directly) | ||
| TWeakPtr< Metasound::FMetasoundGenerator > | GetGeneratorForAudioComponent
(
uint64 ComponentId |
Overridden from USoundWave
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| void | OnEndGenerate
(
ISoundGeneratorPtr Generator |
||
| void | SetRedrawThumbnail
(
bool bInRedraw |
Overridden from USoundBase
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< Audio::IParameterTransmitter > | CreateParameterTransmitter
(
Audio::FParameterTransmitterInitParams&& InParams |
Creates a parameter transmitter for communicating with active sound instances. | |
| ISoundGeneratorPtr | CreateSoundGenerator
(
const FSoundGeneratorInitParams& InParams, |
Creates a sound generator instance from this sound base. | |
| bool | Whether or not this sound allows submix sends on preview. | ||
| bool | GetAllDefaultParameters
(
TArray< FAudioParameter >& OutParameters |
Gets all the default parameters for this Asset. | |
| float | GetDuration () |
Returns the length of the sound | |
| bool | ImplementsParameterInterface
(
Audio::FParameterInterfacePtr InParameterInterface |
Whether or not the given sound is a generator and implements an interface with the given name. | |
| void | InitParameters
(
TArray< FAudioParameter >& ParametersToInit, |
Called from the Game Thread prior to attempting to pass parameters to the ParameterTransmitter. | |
| void | Called from the Game Thread prior to attempting to initialize a sound instance. | ||
| bool | IsLooping () |
Returns whether or not this sound is looping. | |
| bool | IsOneShot () |
Query if it's one shot. One shot is defined as a sound which is intended to have a fixed duration. | |
| bool | IsParameterValid
(
const FAudioParameter& InParameter |
Returns whether parameter is valid input for the given sound | |
| bool | IsPlayable () |
Returns whether the sound base is set up in a playable manner | |
| bool | Returns whether sound supports subtitles. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostDuplicate
(
EDuplicateMode::Type InDuplicateMode |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PreSave
(
FObjectPreSaveContext SaveContext |
Presave function. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from FMetasoundAssetBase
| Type | Name | Description | |
|---|---|---|---|
| bool | Called when the interface is changed, presenting the opportunity for. | ||
| Metasound::Frontend::FNodeClassInfo | Returns Asset Metadata associated with this MetaSoundSource. | ||
| const TSet< FSoftObjectPath > & | Return all dependent asset paths to load asynchronously. | ||
| FText | Name to display in editors. | ||
| Metasound::Frontend::FDocumentAccessPtr | Returns an access pointer to the document. | ||
| Metasound::Frontend::FConstDocumentAccessPtr | Returns an access pointer to the document. | ||
| UEdGraph * | GetGraph () |
Returns the graph associated with this Metasound. | |
| const UEdGraph * | GetGraph () |
||
| const UEdGraph & | |||
| UEdGraph & | |||
| const UObject * | Returns the owning asset responsible for transactions applied to MetaSound. | ||
| UObject * | Returns the owning asset responsible for transactions applied to MetaSound. | ||
| const TSet< FString > & | Returns all the class keys of this asset's referenced assets. | ||
| TArray< FMetasoundAssetBase * > | Returns set of class references set call to serialize in the editor Used at runtime load register referenced classes. | ||
| void | OnAsyncReferencedAssetsLoaded
(
const TArray< FMetasoundAssetBase* >& InAsyncReferences |
Called when async assets have finished loading. | |
| void | Sets the graph associated with this Metasound. | ||
| void | SetReferencedAssetClasses
(
TSet< Metasound::Frontend::IMetaSoundAssetManager::FAssetInfo >&& InAssetClasses |
||
| void | SetRegistryAssetClassInfo
(
const Metasound::Frontend::FNodeClassInfo& InNodeInfo |
Sets Asset Registry Metadata associated with this MetaSoundSource. |
Overridden from IMetaSoundDocumentInterface
| Type | Name | Description | |
|---|---|---|---|
| const UClass & | Returns the parent class registered with the MetaSound UObject registry. | ||
| const FMetasoundFrontendDocument & | GetDocument () |
Returns read-only reference to the the MetaSoundFrontendDocument containing all MetaSound runtime & editor data. |