<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioDeviceCreateIOProcID(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "c:@F@AudioDeviceCreateIOProcID"
  },
  "title" : "AudioDeviceCreateIOProcID(_:_:_:_:)"
}
-->

# AudioDeviceCreateIOProcID(_:_:_:_:)

```
func AudioDeviceCreateIOProcID(_ inDevice: AudioObjectID, _ inProc: AudioDeviceIOProc, _ inClientData: UnsafeMutableRawPointer?, _ outIOProcID: UnsafeMutablePointer<AudioDeviceIOProcID?>) -> OSStatus
```

## Parameters

`inDevice`

The AudioDevice to register the IOProc with.

`inProc`

The AudioDeviceIOProc to register.

`inClientData`

A pointer to client data that is passed back to the IOProc when it is
called.

`outIOProcID`

The newly created AudioDeviceIOProcID.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract Creates an AudioDeviceIOProcID from an AudioDeviceIOProc and a client data
pointer.
\discussion AudioDeviceIOProcIDs allow for the client to register the same function pointer
with a device multiple times

---

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)