---
title: HandleChangeSampleRate
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodevice/handlechangesamplerate
---

# HandleChangeSampleRate

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

## Declaration

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

## Parameters

- `in_sample_rate`: The double sample rate attempting to be set on the device.

## Return Value

Return Value kIOReturnSuccess on success. Upon success the control’s value should be updated.

## Discussion

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