aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShiftOS_TheReturn/Commands.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index 2e70151..7df700f 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -112,6 +112,7 @@ namespace ShiftOS.Engine
{
[Command("setvol", description = "Set the volume of the system audio to anywhere between 0 and 100.")]
[RequiresArgument("value")]
+ [RequiresUpgrade("audio_volume")]
public static bool SetVolume(Dictionary<string,object> args)
{
int val = Convert.ToInt32(args["value"].ToString());
@@ -119,6 +120,13 @@ namespace ShiftOS.Engine
AudioManager.SetVolume(volume);
return true;
}
+ [RequiresUpgrade("audio_volume")]
+ [Command("mute", description = "Sets the volume of the system audio to 0")]
+ public static bool MuteAudio()
+ {
+ AudioManager.SetVolume(0);
+ return true;
+ }
}
[RequiresUpgrade("mud_fundamentals")]