Sound
public enum Sound
Entry point to access and modify the system sound settings, such muting/unmuting and changing the volume.
Overview
This class cannot be instantiated, but you can interact with its output
property directly.
You can use the shared instance to change the output volume as well as
mute and unmute.
-
Mute, unmute and change the volume of the system default output device.
Overview
You can interact with this class in two ways:
- you can interact with its properties, meaning that all changes will be applied immediately and errors will be hidden.
- you can call its methods and handle errors manually.
Declaration
Swift
public final class SoundOutputManager