ドキュメント

Unity Engine

Unity Engine

Configure(GeneratorInstance, in AudioFormat)

Manually reconfigure this GeneratorInstance with the given format.
読み終わるまでの所要時間 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.