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

# DeviceSampleRateChanged

Call to update stream formats when the owning video device changes sample rate.

```
kern_return_t DeviceSampleRateChanged(double in_sample_rate);
```

## Discussion

Goes through all the available stream formats and selects the closet format with the matching sample rate.
The system calls [`HandleChangeCurrentStreamFormat`](/documentation/VideoDriverKit/IOUserVideoStream/HandleChangeCurrentStreamFormat) on the stream to update its format.

---

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)