---
title: DeviceSampleRateChanged
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/devicesampleratechanged
---

# DeviceSampleRateChanged

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

## Declaration

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

## Discussion

Discussion Goes through all the available stream formats and selects the closet format with the matching sample rate. The system calls HandleChangeCurrentStreamFormat on the stream to update its format.

## See Also

### Managing stream changes

- [HandleChangeCurrentStreamFormat](videodriverkit/iouservideostream/handlechangecurrentstreamformat.md)
- [HandleChangeStreamIsActive](videodriverkit/iouservideostream/handlechangestreamisactive.md)
