---
title: HandleChangeStreamIsActive
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiostream/handlechangestreamisactive
---

# HandleChangeStreamIsActive

Tells the stream the activity state is changing.

## Declaration

```occ
virtual kern_return_t HandleChangeStreamIsActive(bool in_is_active);
```

## Parameters

- `in_is_active`: true if the stream is to become active; otherwise, false.

## 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 SetStreamIsActive 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

- [HandleChangeCurrentStreamFormat](audiodriverkit/iouseraudiostream/handlechangecurrentstreamformat.md)
- [DeviceSampleRateChanged](audiodriverkit/iouseraudiostream/devicesampleratechanged.md)
