Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocateRootOutput<TRealtime, TControl>(in TRealtime, in TControl, in CreationParameters)

Allocate a RootOutputInstance with the specified processor and control state.
Read time 1 minuteLast updated 6 days ago

Definition

AllocateRootOutput<T, U>(T, T, CreationParameters)

public readonly RootOutputInstance AllocateRootOutput<TRealtime, TControl>(in TRealtime realtimeState, in TControl controlState, in ProcessorInstance.CreationParameters creationParameters = default) where TRealtime : unmanaged, RootOutputInstance.IRealtime where TControl : unmanaged, RootOutputInstance.IControl<TRealtime>

Parameters

realtimeState

T
The initial state available from the control thread.

controlState

T
The initial state available from the control thread.

creationParameters

Additional parameters and initialization state for the processor.

Returns

Type

Description

RootOutputInstanceA RootOutputInstance you own and control, that must later be destroyed with ControlContext.Destroy.

Remarks

RootOutputInstances have low-level acces to the threading model of the audio system and the final audio output, and are generally used to integrate larger internal or external audio systems.