# isFinished()

> If this is true, the GeneratorInstance has finished generating audio and won't produce any more frames.

## Definition

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

```csharp
public bool isFinished()
```

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

There may still be a range of valid [\_processedFrames](/engine/6000.7/script-reference/unityengine/audio/generatorinstance/result/processedframes.md) values when this is true, for example if the [GeneratorInstance](/engine/6000.7/script-reference/unityengine/audio/generatorinstance.md) finishes in the middle of a buffer.
