Process(GeneratorInstance, ChannelBuffer, Arguments)
Manually process this particular GeneratorInstance.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public readonly GeneratorInstance.Result Process(GeneratorInstance generatorInstance, ChannelBuffer buffer, GeneratorInstance.Arguments args)
Parameters
The buffer the GeneratorInstance will put its processing result into.
Additional arguments passed along, which can be default-initialized.
Returns
Type | Description |
|---|---|
| Result | A Result struct indicating amongst other things how many frames were actually written into |
Remarks
In most use cases, you would not call this directly, but rather have the audio system call it for you. If you are yourself nesting a GeneratorInstance inside another ProcessorInstance, you would call this.
Additional Resources: Process