文档

Unity Engine

Unity Engine

ProcessorInstance.Pipe

A bi-directional communication system typically between two logical threads.
阅读时间1 分钟最后更新于 1 个月前

Definition

public ref struct ProcessorInstance.Pipe

Remarks

One thread is referred to as "control" (main thread typically) and one as "realtime" (audio thread typically). Using ControlContext and RealtimeContext as keys to the APIs, you can read data the other thread sent you or send data back.

Methods

Method

Description

GetAvailableDataAccess an enumerator to the currently available data.
SendDataSend data from GeneratorInstance.IRealtime to GeneratorInstance.IControl<TRealtime> or vice versa.