Contents

Create

Allocates and initializes an instance of the audio box class.

Declaration

static OSSharedPtr<IOUserAudioBox> Create(IOUserAudioDriver *in_driver, bool in_is_acquirable, OSString *in_box_uid);

Parameters

  • in_driver:

    The Iouseraudiodriver that owns this object.

  • in_is_acquirable:

    A Boolean value that specifies if the box supports being acquired.

  • in_box_uid:

    The name of the box, as an Osstring.

Return Value

A poiner to an IOUserAudioBox, if allocation and initialization succeeded.

Discussion

If you subclass IOUserAudioBox to override this class’ behavior, don’t use Create to allocate and initialize the custom subclass.

See Also

Creating an Audio Box