<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioEngineManualRenderingBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@T@AVAudioEngineManualRenderingBlock"
  },
  "title" : "AVAudioEngineManualRenderingBlock"
}
-->

# AVAudioEngineManualRenderingBlock

The type that represents a block that renders the engine when operating in manual rendering mode.

```
typealias AVAudioEngineManualRenderingBlock = (AVAudioFrameCount, UnsafeMutablePointer<AudioBufferList>, UnsafeMutablePointer<OSStatus>?) -> AVAudioEngineManualRenderingStatus
```

## Parameters

`numberOfFrames`

The number of PCM sample frames to render.

`outBuffer`

The PCM buffer the engine must render the audio for.

`outError`

On exit, if an error occurs during rendering, a description of the error.

## Return Value

One of the status codes from [`AVAudioEngineManualRenderingStatus`](/documentation/AVFAudio/AVAudioEngineManualRenderingStatus). Irrespective of the returned status code, on exit, the output buffer’s [`frameLength`](/documentation/AVFAudio/AVAudioPCMBuffer/frameLength) indicates the number of PCM samples the engine renders.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)