Contents

AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)

Declaration

func AudioDeviceCreateIOProcIDWithBlock(_ outIOProcID: UnsafeMutablePointer<AudioDeviceIOProcID?>, _ inDevice: AudioObjectID, _ inDispatchQueue: dispatch_queue_t?, _ inIOBlock: @escaping  AudioDeviceIOBlock) -> OSStatus

Parameters

  • outIOProcID:

    The newly created AudioDeviceIOProcID.

  • inDevice:

    The AudioDevice to register the Block with.

  • inDispatchQueue:

    The dispatch queue on which the IOBlock will be dispatched. All IOBlocks are dispatched synchronously. Note that this dispatch queue will be retained until a matching call to AudioDeviceDestroyIOProcID is made. If this value is NULL, then the IOBlock will be directly invoked.

  • inIOBlock:

    The AudioDeviceIOBlock to register. Note that this block will be Block_copy’d and the reference maintained until a matching call to AudioDeviceDestroyIOProcID is made.

Return Value

An OSStatus indicating success or failure.

Discussion

Creates an AudioDeviceIOProcID from an AudioDeviceIOBlock

See Also

Functions