---
title: AddStream
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodevice/addstream
---

# AddStream

Adds an audio stream to the device.

## Declaration

```occ
kern_return_t AddStream(IOUserAudioStream *in_stream);
```

## Parameters

- `in_stream`: The stream to add to the device.

## 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 adding the stream succeeds, the stream’s reference count increments by one.

## See Also

### Working with Audio Streams

- [RemoveStream](audiodriverkit/iouseraudiodevice/removestream.md)
- [IOUserAudioStream](audiodriverkit/iouseraudiostream.md)
