Create
A static factory method that allocates and initializes an stereo pan control.
Declaration
static OSSharedPtr<IOUserVideoStereoPanControl> Create(IOUserVideoDriver *in_driver, bool in_is_settable, float in_control_value, IOUserVideoObjectPropertyElement in_left_channel, IOUserVideoObjectPropertyElement in_right_channel, IOUserVideoObjectPropertyElement in_control_element, IOUserVideoObjectPropertyScope in_control_scope, IOUserVideoClassID in_control_class_id);Parameters
- in_driver:
The video driver that owns this object.
- in_is_settable:
A Boolean value indicating whether the control value can be set.
- in_control_value:
The control’s current stereo pan value.
- in_left_channel:
The property element for the left channel.
- in_right_channel:
The property element for the right channel.
- in_control_element:
The property element for the control.
- in_control_scope:
The property scope for the control.
- in_control_class_id:
The class ID of the control.
Return Value
The control, if it was successfully allocated and initialized.
Discussion
If IOUserVideoStereoPanControl is subclassed to override behavior, don’t use this method to allocate or initialize the custom subclass.