Navigation
API > API/Plugins > API/Plugins/MetasoundEngine > API/Plugins/MetasoundEngine/UMetaSoundSource
Description
Attempt to get a generator for a given AudioComponentID. You should only pass a valid AudioComponentID. If the ID is set to INDEX_NONE, e.g. from using FAudioDevice::PlaySoundAtLocation, use GetGeneratorForInstanceID instead.
| Name | GetGeneratorForAudioComponent |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundSource.h |
| Include Path | #include "MetasoundSource.h" |
| Source | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Private/MetasoundSource.cpp |
TWeakPtr < Metasound::FMetasoundGenerator > GetGeneratorForAudioComponent
(
uint64 ComponentId
) const
A generator if it exists. A null weak pointer otherwise.
Parameters
| Name | Remarks |
|---|---|
| ComponentId | The ID of the AudioComponent you want the generator from. |