Contents

AddDevice

Adds an audio device to the audio box.

Declaration

kern_return_t AddDevice(IOUserAudioDevice *in_device);

Parameters

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

The box doesn’t own the device.

If adding the device succeeds, the device’s reference count increments by one.

See Also

Managing Box Contents