---
title: SetTerminalType
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiostream/setterminaltype
---

# SetTerminalType

Sets the terminal type of the stream.

## Declaration

```occ
kern_return_t SetTerminalType(IOUserAudioStreamTerminalType in_terminal_type);
```

## Parameters

- `in_terminal_type`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioStreamTerminalType to set.

## 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 available formats sends a notification to the host to update the object state.

## See Also

### Working with Stream Terminals

- [GetTerminalType](audiodriverkit/iouseraudiostream/getterminaltype.md)
- [IOUserAudioStreamTerminalType](audiodriverkit/audiodriverkit/iouseraudiostreamterminaltype.md)
