# Finished(int)

> Creates a new GeneratorInstance.Result that indicates the generator has finished from this point on, having delivered _processedFrames additionally.

## Definition

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

```csharp
public static GeneratorInstance.Result Finished(int processedFrames)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): This can just be 0 if the generator finishes before processing any frames.

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [Result](/engine/6000.6/script-reference/unityengine/audio/generatorinstance/result.md) |             |
