init
Initializes an instance of a stereo pan control.
Declaration
virtual bool init(IOUserAudioDriver *in_driver, bool in_is_settable, float in_control_value, IOUserAudioObjectPropertyElement in_left_channel, IOUserAudioObjectPropertyElement in_right_channel, 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 floating-point value that represents the control’s current stereo pan value.
- in_left_channel:
The Iouseraudioobjectpropertyelement for the left channel.
- in_right_channel:
The Iouseraudioobjectpropertyelement for the right channel.
- 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
true if initialization succeeded; false otherwise.