Navigation
API > API/Plugins > API/Plugins/MetasoundEngine
Inheritance Hierarchy
- USoundWaveProcedural
- FMetasoundAssetBase
- IMetaSoundDocumentInterface
- UMetaSoundSource
References
| Module | MetasoundEngine |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundSource.h |
| Include | #include "MetasoundSource.h" |
Syntax
UCLASS (HideCategories=object, BlueprintType, Config=Metasound, defaultconfig)
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 | ||
| FPerPlatformFloat | BlockRateOverride | 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. | |
| TObjectPtr< UMetasoundEditorGraphBase > | Graph | ||
| FOnGeneratorInstanceCreated | OnGeneratorInstanceCreated | ||
| FOnGeneratorInstanceDestroyed | OnGeneratorInstanceDestroyed | ||
| EMetaSoundOutputAudioFormat | OutputFormat | The output audio format of the metasound source. | |
| FName | QualitySetting | The Quality this Metasound will use. These are defined in the MetaSounds project settings. | |
| FGuid | QualitySettingGuid | This a editor only look up for the Quality Setting above. Preventing orphaning of the original name. | |
| TSet< FSoftObjectPath > | ReferenceAssetClassCache | ||
| TSet< FString > | ReferencedAssetClassKeys | ||
| TSet< TObjectPtr< UObject > > | ReferencedAssetClassObjects | ||
| FString | RegistryInputTypes | ||
| FString | RegistryOutputTypes | ||
| int32 | RegistryVersionMajor | ||
| int32 | RegistryVersionMinor | ||
| FMetasoundFrontendDocument | RootMetasoundDocument | ||
| FPerPlatformInt | SampleRateOverride | 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. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMetaSoundSource
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| bool | CanEditChange
(
const FProperty* InProperty |
||
| bool | |||
| Metasound::FMetasoundEnvironment | CreateEnvironment
(
const FSoundGeneratorInitParams& InParams |
||
| TSharedPtr< Audio::IParameterTransmitter > | CreateParameterTransmitter
(
Audio::FParameterTransmitterInitParams&& InParams |
||
| ISoundGeneratorPtr | CreateSoundGenerator
(
const FSoundGeneratorInitParams& InParams, |
||
| bool | |||
| bool | GetAllDefaultParameters
(
TArray< FAudioParameter >& OutParameters |
Gets all the default parameters for this Asset. | |
| FName | Returns document name (for editor purposes, and avoids making document public for edit while allowing editor to reference directly) | ||
| float | GetDuration () |
||
| TWeakPtr< Metasound::FMetasoundGenerator > | GetGeneratorForAudioComponent
(
uint64 ComponentId |
||
| Metasound::FOperatorSettings | GetOperatorSettings
(
Metasound::FSampleRate InDeviceSampleRate |
||
| const TArray< Metasound::FVertexName > & | |||
| bool | |||
| bool | ImplementsParameterInterface
(
Audio::FParameterInterfacePtr InInterface |
||
| void | InitParameters
(
TArray< FAudioParameter >& ParametersToInit, |
||
| void | |||
| bool | IsDynamic () |
||
| bool | IsLooping () |
||
| bool | IsOneShot () |
||
| bool | IsParameterValid
(
const FAudioParameter& InParameter |
||
| bool | IsPlayable () |
||
| void | OnEndGenerate
(
ISoundGeneratorPtr Generator |
||
| void | PostDuplicate
(
EDuplicateMode::Type InDuplicateMode |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& InEvent |
||
| void | PostEditUndo () |
||
| void | PostLoad () |
||
| void | |||
| void | PreSave
(
FObjectPreSaveContext InSaveContext |
||
| void | |||
| void | SetRedrawThumbnail
(
bool bInRedraw |
Overridden from FMetasoundAssetBase
| Type | Name | Description | |
|---|---|---|---|
| bool | Called when the interface is changed, presenting the opportunity for. | ||
| 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. | ||
| const UEdGraph * | GetGraph () |
||
| UEdGraph * | GetGraph () |
Returns the graph associated with this Metasound. | |
| const UEdGraph & | |||
| UEdGraph & | |||
| UObject * | Returns the owning asset responsible for transactions applied to MetaSound. | ||
| const 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 | RegisterGraphWithFrontend
(
Metasound::Frontend::FMetaSoundAssetRegistrationOptions InRegistrationOptions |
Registers the root graph of the given asset with the MetaSound Frontend. | |
| void | SetGraph
(
UEdGraph* InGraph |
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 | |
|---|---|---|---|
| FTopLevelAssetPath | |||
| const UClass & | Returns the parent class registered with the MetaSound UObject registry. | ||
| const FMetasoundFrontendDocument & | Returns read-only reference to the the MetaSoundFrontendDocument containing all MetaSound runtime & editor data. |