---
title: "muteDevice(_:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/mediadeviceextension/mutedevice(_:)"
---

# muteDevice(_:)

Mutes the audio output for the specified device.

## Declaration

```swift
@MainActor func muteDevice(_ device: MediaOutputDevice)
```

## Parameters

- `device`: The device to mute.

## Discussion

Discussion Called when a device reports true for canMute. Grouping For a group of devices, individual device volume mute should influence the group mute. For a group of devices, all devices in the group must report true for canMute.
