CreateManualControlContext(in AudioFormat)
Create a new ControlContext with additional functionality you can drive manually.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
CreateManualControlContext(AudioFormat)
public static ControlContext.Manual CreateManualControlContext(in AudioFormat format)
Parameters
The initial AudioFormat the returned ControlContext.Manual will run in.
Returns
Type | Description |
|---|---|
| Manual | A ControlContext.Manual you own and control, that must later be disposed. |
Remarks
This context is completely separate from _builtIn and shares no data, lifetime or callbacks. It's an error to mix and match ProcessorInstances from different ControlContexts. You must manually destroy this instance.