Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

ControlContext.AllocateGenerator

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Audio.Generator AllocateGenerator(ref TProcessor processorState, ref TControl controlState, Nullable<DSPConfiguration> nestedConfiguration, ref Audio.ControlContext.ProcessorCreationParameters creationParameters);

Parameters

Parameter Description
processorState The initial state available from the processing thread.
controlState The initial state available from the control thread.
nestedConfiguration If not null, the returned Generator will be treated as nested and use this configuration.
creationParameters Additional parameters and initialization state for the processor. This is generally received from IGeneratorDefinition.CreateRuntime.

Returns

Generator A Generator you own and control, that must later be destroyed with ControlContext.Destroy.

Description

Allocate a Generator with the specified processor and control state.

This can generally be used to render the output of a IGeneratorDefinition, potentially from within another Generator.

Additional resources: IGeneratorDefinition.CreateRuntime.