Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Configure(GeneratorInstance, in AudioFormat)

Manually reconfigure this GeneratorInstance with the given format.
Read time 1 minuteLast updated 5 days ago

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.