---
title: "setRenderResourcesAllocated(_:)"
framework: audiotoolbox
role: symbol
role_heading: Instance Method
path: "audiotoolbox/auaudiounit/setrenderresourcesallocated(_:)"
---

# setRenderResourcesAllocated(_:)

Sets the Boolean value of the renderResourcesAllocated property.

## Declaration

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

## Parameters

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

## Discussion

Discussion In the base class implementation of the allocateRenderResources() method, the value of the renderResourcesAllocated property is set to true. If the allocateRenderResources() method fails in a subclass, you must use this method to set the value of the renderResourcesAllocated property to false.

## See Also

### Customizing the Audio Unit Behavior

- [registerSubclass(_:as:name:version:)](audiotoolbox/auaudiounit/registersubclass(_:as:name:version:).md)
- [shouldChange(to:for:)](audiotoolbox/auaudiounit/shouldchange(to:for:).md)
- [internalRenderBlock](audiotoolbox/auaudiounit/internalrenderblock.md)
- [midiOutputBufferSizeHint](audiotoolbox/auaudiounit/midioutputbuffersizehint.md)
- [AUInternalRenderBlock](audiotoolbox/auinternalrenderblock.md)
