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

# AudioHardwareTap

Instances of the AudioHardwareTap class encapsulate a single audio tap, which can capture
outgoing audio from a process or group of processes, and be used as an input stream source
in an aggregate device.

```
class AudioHardwareTap
```

## Topics

### Initializers

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

### Instance Properties

[`var description: CATapDescription`](/documentation/CoreAudio/AudioHardwareTap/description)

The CATapDescription that describes the configuration of this tap.

[`var format: AudioStreamBasicDescription`](/documentation/CoreAudio/AudioHardwareTap/format)

An AudioStreamBasicDescription that describes the current data format for the tap. This is
the format of the data that will be accessible in any aggregate device that contains the tap.

[`var uid: String`](/documentation/CoreAudio/AudioHardwareTap/uid)

A String that contains a persistent identifier for the tap. A tap’s UID persists until the
tap is destroyed.

### Instance Methods

[`func setDescription(CATapDescription) throws`](/documentation/CoreAudio/AudioHardwareTap/setDescription(_:))

Set the description property.

## 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)