<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AUAudioUnit/setRenderResourcesAllocated(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Audio Toolbox",
      "AudioToolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)AUAudioUnit(im)setRenderResourcesAllocated:"
  },
  "title" : "setRenderResourcesAllocated(_:)"
}
-->

# setRenderResourcesAllocated(_:)

Sets the Boolean value of the [`renderResourcesAllocated`](/documentation/AudioToolbox/AUAudioUnit/renderResourcesAllocated) property.

```
func setRenderResourcesAllocated(_ flag: Bool)
```

## Parameters

`flag`

A Boolean value that determines whether the audio unit has allocated its required rendering resources..

## Discussion

In the base class implementation of the [`allocateRenderResources()`](/documentation/AudioToolbox/AUAudioUnit/allocateRenderResources()) method, the value of the [`renderResourcesAllocated`](/documentation/AudioToolbox/AUAudioUnit/renderResourcesAllocated) property is set to <doc://com.apple.documentation/documentation/Swift/true>. If the [`allocateRenderResources()`](/documentation/AudioToolbox/AUAudioUnit/allocateRenderResources()) method fails in a subclass, you must use this method to set the value of the [`renderResourcesAllocated`](/documentation/AudioToolbox/AUAudioUnit/renderResourcesAllocated) property to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)