From 28f0cda0c5c77d9db40c8f0433e494b1f50b31c6 Mon Sep 17 00:00:00 2001 From: Aren Date: Tue, 7 Feb 2017 16:17:06 +0100 Subject: [PATCH] Added audio.mute --- ShiftOS_TheReturn/Commands.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index 2e70151..69bcfa3 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -119,6 +119,12 @@ namespace ShiftOS.Engine AudioManager.SetVolume(volume); return true; } + [Command("mute", description = "Sets the volume of the system audio to 0")] + public static bool MuteAudio() + { + AudioManager.SetVolume(0); + return true; + } } [RequiresUpgrade("mud_fundamentals")]