Navigation
API > API/Plugins > API/Plugins/MetasoundGenerator
Inheritance Hierarchy
- ISoundGenerator
- FMetasoundGenerator
- FMetasoundConstGraphGenerator
- FMetasoundDynamicGraphGenerator
References
| Module | MetasoundGenerator |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGenerator/Public/MetasoundGenerator.h |
| Include | #include "MetasoundGenerator.h" |
Syntax
class FMetasoundGenerator : public ISoundGenerator
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FAudioBufferReadRef > | GraphOutputAudio | ||
| FString | MetasoundName | ||
| FTriggerReadRef | OnFinishedTriggerRef | Triggered when metasound is finished. | |
| FOnOutputChanged | OnOutputChanged | ||
| const FOperatorSettings | OperatorSettings | ||
| TMap< FName, MetasoundGeneratorPrivate::FParameterPackSetter > | ParameterPackSetters | This map provides setters for all of the input nodes in the metasound graph. | |
| MetasoundGeneratorPrivate::FParameterSetterSortedMap | ParameterSetters | ||
| FExecuter | RootExecuter | ||
| FVertexInterfaceData | VertexInterfaceData |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMetasoundGenerator
(
const FOperatorSettings& InOperatorSettings |
Create the generator with a graph operator and an output audio reference. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | AddGraphSetCallback
(
FOnSetGraph::FDelegate&& Delegate |
Called when a new graph has been "compiled" and set up as this generator's graph. | |
| void | AddOutputVertexAnalyzer
(
const Frontend::FAnalyzerAddress& AnalyzerAddress |
Add a vertex analyzer for a named output with the given address info. | |
| void | ApplyToInputValue
(
const FVertexName& InName, |
Apply a function to the graph's input data. | |
| void | ClearGraph () |
Release the graph operator and remove any references to data owned by the graph operator. | |
DECLARE_TS_MULTICAST_DELEGATE_FourParams
(
FOnOutputChanged, |
|||
| double | Fraction of a single CPU core used to render audio on a scale of 0.0 to 1.0 | ||
| TOptional< TDataWriteReference< DataType > > | GetInputWriteReference
(
const FVertexName InputName |
Get a write reference to one of the generator's inputs, if it exists. | |
| int32 | Return the number of audio channels. | ||
| TOptional< TDataReadReference< DataType > > | GetOutputReadReference
(
const FVertexName OutputName |
Get a read reference to one of the generator's outputs, if it exists. | |
| void | InitBase
(
const FMetasoundGeneratorInitParams& InInitParams |
||
| void | QueueParameterPack
(
TSharedPtr< FMetasoundParameterPackStorage > ParameterPack |
||
| TUniquePtr< IOperator > | |||
| FInputVertexInterfaceData | |||
| bool | RemoveGraphSetCallback
(
const FDelegateHandle& Handle |
||
| void | RemoveOutputVertexAnalyzer
(
const Frontend::FAnalyzerAddress& AnalyzerAddress |
Remove a vertex analyzer for a named output | |
| void | SetGraph
(
TUniquePtr< MetasoundGeneratorPrivate::FMetasoundGeneratorData >&& InData, |
SetGraph directly sets graph. Callers must ensure that no race conditions exist. | |
| void | SetInputValue
(
const FVertexName& InName, |
Set the value of a graph's input data using the assignment operator. | |
| bool |
Overridden from ISoundGenerator
| Type | Name | Description | |
|---|---|---|---|
| int32 | Returns the number of samples to render per callback. | ||
| bool | IsFinished () |
Optional. Can be overridden to end the sound when generating is finished. | |
| int32 | OnGenerateAudio
(
float* OutAudio, |
Called when a new buffer is required. |
Typedefs
| Name | Description |
|---|---|
| FAudioBufferReadRef | |
| FOperatorUniquePtr |