Process(in RealtimeContext, ChannelBuffer, ChannelBuffer, Arguments)
Manually process this particular EffectInstance.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
Process(RealtimeContext, ChannelBuffer, ChannelBuffer, Arguments)
public EffectInstance.Result Process(in RealtimeContext context, ChannelBuffer inputBuffer, ChannelBuffer outputBuffer, EffectInstance.Arguments effectArgs)
Parameters
The RealtimeContext of the current mix cycle.
The buffer holding the audio for the effect to process.
The buffer the effect will put its processing result into.
Additional arguments passed along, which can be default-initialized.
Returns
Type | Description |
|---|---|
| Result | A EffectInstance.Result struct. It currently carries no data. |
Remarks
In most use cases, you would not call this directly, but rather have the audio system call it for you. If you nest an EffectInstance inside another ProcessorInstance, call this from the owning processor's real-time part, within a mix cycle.