ProcessorInstance.IControl<TRealtime>
Base interface for common functionality of controlling a ProcessorInstance.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public interface ProcessorInstance.IControl<TRealtime> where TRealtime : unmanaged, ProcessorInstance.IRealtime
Remarks
Here you can implement any control logic that is required for the realtime, that will run outside of the real-time thread.
All ProcessorInstances must implement this interface to be fully formed, though usually each specific ProcessorInstance implements a more specific interface inheriting from this one.
Additional Resources: GeneratorInstance.IControl<TRealtime>
Methods
Method | Description |
|---|---|
| Dispose | Called when the generator is destroyed, after having left the processing thread. |
| OnMessage | Called immediately from ControlContext.SendMessage when a message was sent to this ProcessorInstance. |
| Update | Called if you have subscribed to continuous updates from the control thread, or if there is data returned from the |