Navigation
API > API/Plugins > API/Plugins/MetasoundGenerator > API/Plugins/MetasoundGenerator/FMetasoundGenerator
Description
Enqueues a command for this generator to execute when its next buffer is requested by the mixer. Enqueued commands are executed before OnGenerateAudio, and on the same thread. They can safely access generator state.
| Name | OnNextBuffer |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGenerator/Public/MetasoundGenerator.h |
| Include Path | #include "MetasoundGenerator.h" |
void OnNextBuffer
(
TFunction < void &)> Command
)