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

# SetTransportType

Sets the transport type of the clock device.

## Declaration

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

## Parameters

- `in_transport_type`: The 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 Drivers can change the transport type of the clock device dynamically. If successful, changing the transport type sends a notification to the host to update the object state.

## See Also

### Working with Transport Type

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