文档

Unity Engine

Unity Engine

Configure(GeneratorInstance, in AudioFormat)

Manually reconfigure this GeneratorInstance with the given.
阅读时间1 分钟最后更新于 1 个月前

Definition

Configure(GeneratorInstance, AudioFormat)

public void Configure(GeneratorInstance generatorInstance, in AudioFormat format)

Parameters

generatorInstance


Remarks

This method can only be called on nested GeneratorInstances (created by your code, not root processors) and only during system-wide reconfiguration when ControlContext.IsSystemWideReconfiguring is true.
During system-wide reconfiguration (e.g., when the sample rate changes), the realtime audio thread is suspended, making it safe to reconfigure nested processors. Calling this method at any other time will throw an exception.