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

# AudioHardwarePlugin

Instances of the AudioHardwarePlugin class encapsulate a single audio HAL plugin, which is a
CFBundle loaded by the HAL as a driver to implement device-specific properties and routines.

```
class AudioHardwarePlugin
```

## Topics

### Initializers

[`init(id: AudioObjectID)`](/documentation/CoreAudio/AudioHardwarePlugin/init(id:))

### Instance Properties

[`var boxes: [AudioHardwareBox]`](/documentation/CoreAudio/AudioHardwarePlugin/boxes)

An array of AudioHardwareBoxes that represent all the box objects currently provided by
the plugin.

[`var bundleID: String`](/documentation/CoreAudio/AudioHardwarePlugin/bundleID)

A String that contains the bundle identifier for the plugin.

[`var clocks: [AudioHardwareClock]`](/documentation/CoreAudio/AudioHardwarePlugin/clocks)

An array of AudioHardwareClocks that represent all the clock objects currently provided by
the plugin.

[`var devices: [AudioHardwareDevice]`](/documentation/CoreAudio/AudioHardwarePlugin/devices)

An array of AudioHardwareDevices that represent all the devices currently provided by the
plugin.

### Instance Methods

[`func box(forUID: String) throws -> AudioHardwareBox?`](/documentation/CoreAudio/AudioHardwarePlugin/box(forUID:))

[`func clock(forUID: String) throws -> AudioHardwareClock?`](/documentation/CoreAudio/AudioHardwarePlugin/clock(forUID:))

[`func device(forUID: String) throws -> AudioHardwareDevice?`](/documentation/CoreAudio/AudioHardwarePlugin/device(forUID:))

## Relationships

### Inherits From

[`AudioHardwareObject`](/documentation/CoreAudio/AudioHardwareObject)

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)