---
title: SetTransportType
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodriver/settransporttype
---

# SetTransportType

Set the transport type of the driver.

## Declaration

```occ
kern_return_t SetTransportType(IOUserAudioTransportType in_transport_type);
```

## Parameters

- `in_transport_type`: The audio transport type 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 You can change the transport type dynamically. If the change succeeds, the framework sends a notification to the host to update its object state.

## See Also

### Working with Transport Type

- [GetTransportType](audiodriverkit/iouseraudiodriver/gettransporttype.md)
- [IOUserAudioTransportType](audiodriverkit/audiodriverkit/iouseraudiotransporttype.md)
