---
title: SetStreamIsActive
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiostream/setstreamisactive
---

# SetStreamIsActive

Sets a Boolean value that indicates whether the stream is active and doing I/O.

## Declaration

```occ
kern_return_t SetStreamIsActive(bool in_is_active);
```

## Parameters

- `in_is_active`: true if the stream is enabled and performing I/O; 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 If successful, changing the stream’s activity state sends a notification to the host to update the object state. This method synchronizes by using the work queue created by the object.

## See Also

### Working with Stream Formats

- [SetCurrentStreamFormat](audiodriverkit/iouseraudiostream/setcurrentstreamformat.md)
- [GetCurrentStreamFormat](audiodriverkit/iouseraudiostream/getcurrentstreamformat.md)
- [SetAvailableStreamFormats](audiodriverkit/iouseraudiostream/setavailablestreamformats.md)
- [GetAvailableStreamFormats](audiodriverkit/iouseraudiostream/getavailablestreamformats.md)
- [GetNumberAvailableStreamFormats](audiodriverkit/iouseraudiostream/getnumberavailablestreamformats.md)
- [IOUserAudioStreamBasicDescription](audiodriverkit/audiodriverkit/iouseraudiostreambasicdescription.md)
- [GetStreamDirection](audiodriverkit/iouseraudiostream/getstreamdirection.md)
- [IOUserAudioStreamDirection](audiodriverkit/audiodriverkit/iouseraudiostreamdirection.md)
- [GetStreamIsActive](audiodriverkit/iouseraudiostream/getstreamisactive.md)
