SendMessage<T>(ProcessorInstance, ref T)
Send a message with a piece of data to be immediately evaluated by the ProcessorInstance.IRealtime.OnMessage on the real-time side.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
SendMessage<T>(ProcessorInstance, T)
public readonly ProcessorInstance.Response SendMessage<T>(ProcessorInstance processorInstance, ref T message) where T : unmanaged
Parameters
Returns
Type | Description |
|---|---|
| Response | ProcessorInstance.Response.Handled if |
Remarks
This is the real-time counterpart of ControlContext.SendMessage: it dispatches synchronously to the 's ProcessorInstance.IRealtime implementation from within this RealtimeContext. The is passed by reference, so the can modify it.
processorInstancemessageprocessorInstance