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

# GetAvailableSampleRates

Gets the available sample rates of the clock device.

```
size_t GetAvailableSampleRates(double *out_sample_rates, size_t in_num_rates);
```

## Parameters

`out_sample_rates`

A pointer to a buffer of type `double` whose size corresponds to `in_num_rates`. After the call completes, this buffer contains the available sample rates.

`in_num_rates`

The number of rates in the `out_sample_rates` buffer.

## Return Value

A `size_t` that indicates how many rates were set in the `out_sample_rates` buffer.

## Discussion

This method synchronizes by using the work queue created by the object.

---

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)