Contents

AudioDeviceCreateIOProcID(_:_:_:_:)

Declaration

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

Creates an AudioDeviceIOProcID from an AudioDeviceIOProc and a client data pointer.

AudioDeviceIOProcIDs allow for the client to register the same function pointer with a device multiple times

See Also

Functions