# Configure(GeneratorInstance, in AudioFormat)

> Manually reconfigure this GeneratorInstance with the given format.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Audio](/engine/6000.6/script-reference/unityengine/audio.md)
* **Assembly:** UnityEngine.AudioModule

## Configure(GeneratorInstance, AudioFormat)

```csharp
public void Configure(GeneratorInstance generatorInstance, in AudioFormat format)
```

### Parameters

**** (\[GeneratorInstance]\(/engine/6000.6/script-reference/unityengine/audio/generatorinstance)): **** (\[AudioFormat]\(/engine/6000.6/script-reference/unityengine/audio/audioformat)):&#x20;

### Remarks

This method can only be called on nested [GeneratorInstance](/engine/6000.6/script-reference/unityengine/audio/generatorinstance.md)s (created by your code, not root processors) and only during system-wide reconfiguration when [ControlContext.IsSystemWideReconfiguring](/engine/6000.6/script-reference/unityengine/audio/controlcontext/issystemwidereconfiguring.md) 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.

Additional Resources: [ControlContext.AllocateGenerator](/engine/6000.6/script-reference/unityengine/audio/controlcontext/allocategenerator.md), [ControlContext.IsSystemWideReconfiguring](/engine/6000.6/script-reference/unityengine/audio/controlcontext/issystemwidereconfiguring.md), [ControlContext.Exists](/engine/6000.6/script-reference/unityengine/audio/controlcontext/exists.md)
