AllocateRootOutput<TRealtime, TControl>(in TRealtime, in TControl, in CreationParameters)
Allocate a RootOutputInstance with the specified processor and control state.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
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
Additional parameters and initialization state for the processor.
Returns
Type | Description |
|---|---|
| RootOutputInstance | A 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.