<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareSystem/allowsSleeping",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareSystemC14allowsSleepingSbvp"
  },
  "title" : "allowsSleeping"
}
-->

# allowsSleeping

A Bool where true indicates that the process will allow the CPU to idle sleep even if
there is audio IO in progress. Fasle indicates that the CPU will not be allowed to idle
sleep.

```
var allowsSleeping: Bool { get throws }
```

## Discussion

Note that this property won’t affect when the CPU is forced to sleep.

---

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)