Create
Allocates and initializes an instance of the slider control class.
Declaration
static OSSharedPtr<IOUserAudioSliderControl> Create(IOUserAudioDriver *in_driver, bool in_is_settable, uint32_t in_control_value, IOUserAudioSliderRange in_range, IOUserAudioObjectPropertyElement in_control_element, IOUserAudioObjectPropertyScope in_control_scope, IOUserAudioClassID in_control_class_id);Parameters
- in_driver:
The Iouseraudiodriver that owns this object.
- in_is_settable:
A Boolean value that indicates if the control can be set.
- in_control_value:
A Uint32_t value that represents the control’s current value.
- in_range:
The range that defines minimum and maximum values for the slider.
- in_control_element:
An Iouseraudioobjectpropertyelement to identify the control.
- in_control_scope:
A Iouseraudioobjectpropertyscope indicating the control’s scope: input, output, global, or play-through.
- in_control_class_id:
The Iouseraudioclassid of the control.
Return Value
A poiner to an IOUserAudioSliderControl, if allocation and initialization succeeded.
Discussion
If you subclass IOUserAudioSliderControl to override this class’ behavior, don’t use Create to allocate and initialize the custom subclass.