SendData<TAudioContext, T>(TAudioContext, in T)
Send data from ProcessorInstance.IRealtime to ProcessorInstance.IControl<TRealtime> or vice versa.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
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
Returns
Type | Description |
|---|---|
| bool | True 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. |