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

# SetTransportType

Sets the box’s transport type.

## Declaration

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

## Parameters

- `in_transport_type`: The IOUserAudioTransportType to set for the audio box.

## 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 transport type 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 Transport Types

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