Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SendData<TAudioContext, T>(TAudioContext, in T)

Send data from ProcessorInstance.IRealtime to ProcessorInstance.IControl<TRealtime> or vice versa.
Read time 1 minuteLast updated 5 days ago

Definition

SendData<T, U>(T, T)

public readonly bool SendData<TAudioContext, T>(TAudioContext context, in T data) where TAudioContext : unmanaged, ProcessorInstance.IContext where T : unmanaged

Parameters

context

T
The context key which targets the other logical thread receiver.

data

T
The data to be received in the other logical thread.

Returns

Type

Description

boolTrue if this operation is currently possible. This can fail for instance when the ProcessorInstance is being in process of being disposed through DestroyProcessor, so you must guard against this if you are transferring resources.