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

# IOUserAudioStereoPanControl

A control object that supports panning between stereo channels.

```
class IOUserAudioStereoPanControl;
```

## Topics

### Creating a Stereo Pan Control

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

Allocates and initializes an instance of the stereo pan control class.

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

Initializes an instance of a stereo pan control.

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

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

[`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.

### Freeing a Stereo Pan Control

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

Frees the stereo pan control.

### Getting Information About the Class

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

Gets the audio class identifier of the object.

[`virtual IOUserAudioClassID GetBaseClassID();`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/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(float in_control_value);`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/HandleChangeControlValue)

Tells the stereo pan control the value is changing.

### Accessing the Value

[`kern_return_t SetControlValue(float in_control_value);`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/SetControlValue)

Sets the stereo pan value of the control.

[`float GetControlValue();`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/GetControlValue)

Gets the floating-point stereo pan value of the control.

[`kern_return_t SetPanningChannels(IOUserAudioObjectPropertyElement in_left_channel, IOUserAudioObjectPropertyElement in_right_channel);`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/SetPanningChannels)

Sets the current stereo panning channels.

[`void GetPanningChannels(IOUserAudioObjectPropertyElement *out_left_channel, IOUserAudioObjectPropertyElement *out_right_channel);`](/documentation/AudioDriverKit/IOUserAudioStereoPanControl/GetPanningChannels)

Gets the current stereo panning channels.

## 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)