---
title: "renderOffline(_:to:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudioengine/renderoffline(_:to:)"
---

# renderOffline(_:to:)

Makes a render call to the engine operating in the offline manual rendering mode.

## Declaration

```swift
func renderOffline(_ numberOfFrames: AVAudioFrameCount, to buffer: AVAudioPCMBuffer) throws -> AVAudioEngineManualRenderingStatus
```

## Parameters

- `numberOfFrames`: The number of PCM sample frames to render.
- `buffer`: The PCM buffer the engine must render the audio for.

## Return Value

Return Value One of the status codes from AVAudioEngineManualRenderingStatus. Irrespective of the returned status code, on exit, the output buffer’s frameLength indicates the number of PCM samples the engine renders.

## See Also

### Manually Rendering an Audio Engine

- [enableManualRenderingMode(_:format:maximumFrameCount:)](avfaudio/avaudioengine/enablemanualrenderingmode(_:format:maximumframecount:).md)
- [disableManualRenderingMode()](avfaudio/avaudioengine/disablemanualrenderingmode().md)
