---
title: SetHasAudio
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiobox/sethasaudio
---

# SetHasAudio

Sets a Boolean value that indicates the box’s audio support.

## Declaration

```occ
kern_return_t SetHasAudio(bool in_has_audio);
```

## Parameters

- `in_has_audio`: true if the box supports audio; otherwise, false.

## 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 audio support value 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

### Determining Media Support

- [HasAudio](audiodriverkit/iouseraudiobox/hasaudio.md)
- [SetHasVideo](audiodriverkit/iouseraudiobox/sethasvideo.md)
- [HasVideo](audiodriverkit/iouseraudiobox/hasvideo.md)
- [SetHasMIDI](audiodriverkit/iouseraudiobox/sethasmidi.md)
- [HasMIDI](audiodriverkit/iouseraudiobox/hasmidi.md)
