<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareSystem/process(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareSystemC7process3forAA0bC7ProcessCSgs5Int32V_tKF"
  },
  "title" : "process(for:)"
}
-->

# process(for:)

```
func process(for PID: pid_t) throws -> AudioHardwareProcess?
```

## Parameters

`PID`

A pid_t representing the PID of the process object to obtain.

## Return Value

The AudioHardwareProcess that corresponds with the given PID, or nil if the PID
does not correspond with any process object.

---

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)