---
title: HandleChangeCurrentStreamFormat
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiostream/handlechangecurrentstreamformat
---

# HandleChangeCurrentStreamFormat

Tells the stream the format is changing.

## Declaration

```occ
virtual kern_return_t HandleChangeCurrentStreamFormat(const IOUserAudioStreamBasicDescription *in_format);
```

## Parameters

- `in_format`: The stream format to set, if possible, as an IOUserAudioStreamBasicDescription.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## Discussion

Discussion The default implementation calls SetCurrentStreamFormat and returns kIOReturnSuccess. Subclass and override this method to handle changes to the stream format and return kIOReturnSuccess upon success.

## See Also

### Managing Stream Changes

- [HandleChangeStreamIsActive](audiodriverkit/iouseraudiostream/handlechangestreamisactive.md)
- [DeviceSampleRateChanged](audiodriverkit/iouseraudiostream/devicesampleratechanged.md)
