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

# SetAvailableSampleRates

Sets the available sample rates for the clock device.

```
kern_return_t SetAvailableSampleRates(const double *in_sample_rates, size_t in_num_rates);
```

## Parameters

`in_sample_rates`

Pointer to a buffer of double’’s with size corresponding to in_num_rates.

`in_num_rates`

size_t of the number of sample rates in in_sample_rates buffer.

## Discussion

Changing the available sample rates will send a notification to the host to update the object state if successful.
The object’s work queue synchronizes access to the sample rates.

---

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)