<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioSliderControl",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioSliderControl"
  },
  "title" : "IOUserAudioSliderControl"
}
-->

# IOUserAudioSliderControl

A control object that supports setting a 32-bit integer value.

```
class IOUserAudioSliderControl;
```

## Topics

### Creating a Slider Control

[`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);`](/documentation/AudioDriverKit/IOUserAudioSliderControl/Create)

Allocates and initializes an instance of the slider control class.

[`virtual bool init(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);`](/documentation/AudioDriverKit/IOUserAudioSliderControl/init)

Initializes an instance of a slider control.

[`typedef uint32_t IOUserAudioObjectPropertyElement;`](/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyElement)

A four character code which, along with the selector and scope, identify a specific piece of information about an audio object.

[`enum IOUserAudioObjectPropertyScope : uint32_t;`](/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyScope)

A four character code which, along with the selector and element, identify a specific piece of information about an audio object.

[`class IOUserAudioDriver;`](/documentation/AudioDriverKit/IOUserAudioDriver)

A DriverKit provider object that manages communications with an audio device.

### Freeing a Slider Control

[`virtual void free();`](/documentation/AudioDriverKit/IOUserAudioSliderControl/free)

Frees the slider control.

### Getting Information About the Class

[`virtual IOUserAudioClassID GetClassID();`](/documentation/AudioDriverKit/IOUserAudioSliderControl/GetClassID)

Gets the audio class identifier of the object.

[`virtual IOUserAudioClassID GetBaseClassID();`](/documentation/AudioDriverKit/IOUserAudioSliderControl/GetBaseClassID)

Gets the audio class identifier of the base class object.

[`enum IOUserAudioClassID : uint32_t;`](/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioClassID)

An identifier for the type of audio object.

### Supporting Value Changes

[`virtual kern_return_t HandleChangeControlValue(uint32_t in_control_value);`](/documentation/AudioDriverKit/IOUserAudioSliderControl/HandleChangeControlValue)

Tells the slider control the value is changing.

### Accessing the Value

[`kern_return_t SetControlValue(uint32_t in_control_value);`](/documentation/AudioDriverKit/IOUserAudioSliderControl/SetControlValue)

Sets the value of the slider control.

[`uint32_t GetControlValue();`](/documentation/AudioDriverKit/IOUserAudioSliderControl/GetControlValue)

Gets the value of the slider control.

[`kern_return_t SetRange(IOUserAudioSliderRange in_range);`](/documentation/AudioDriverKit/IOUserAudioSliderControl/SetRange)

Sets the range of possible values for the slider.

[`IOUserAudioSliderRange GetRange();`](/documentation/AudioDriverKit/IOUserAudioSliderControl/GetRange)

Gets the range of possible values for the slider.

[`struct IOUserAudioSliderRange;`](/documentation/AudioDriverKit/IOUserAudioSliderRange)

A type that indicates minimum and maximum values for slider controls.

## Relationships

### Inherits From

[`IOUserAudioControl`](/documentation/AudioDriverKit/IOUserAudioControl)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)