<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoClockDevice/HandleChangeSampleRate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoClockDevice@F@HandleChangeSampleRate#d#"
  },
  "title" : "HandleChangeSampleRate"
}
-->

# HandleChangeSampleRate

The system calls this virtual method when the clock device’s sample rate changes.

```
virtual kern_return_t HandleChangeSampleRate(double in_sample_rate);
```

## Parameters

`in_sample_rate`

The double sample rate attempting to be set on the clock device.

## Return Value

`kIOReturnSuccess` on success. Upon success the value should be updated.

## Discussion

The default implementation calls SetSampleRate() and returns `kIOReturnSuccess`.
Subclass and override this method to handle changes to this value and
return `kIOReturnSuccess` upon success.

---

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)