Process(GeneratorInstance, ChannelBuffer, Arguments)
Manually process this particular GeneratorInstance.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public readonly GeneratorInstance.Result Process(GeneratorInstance generatorInstance, ChannelBuffer buffer, GeneratorInstance.Arguments args)
Parameters
The GeneratorInstance to process.
The buffer the GeneratorInstance will put its processing result into.
Additional arguments passed along, which can be default-initialized.
Returns
Type | Description |
|---|---|
| Result | A GeneratorInstance.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