aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorAren <[email protected]>2017-02-07 16:17:06 +0100
committerAren <[email protected]>2017-02-07 16:17:06 +0100
commit28f0cda0c5c77d9db40c8f0433e494b1f50b31c6 (patch)
treece3d98316574afd9e552f9a1a9a6dac7fe816a4f /ShiftOS_TheReturn
parent82de84638ab857512181d5ed4ad0b5010bca1213 (diff)
downloadshiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.tar.gz
shiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.tar.bz2
shiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.zip
Added audio.mute
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Commands.cs6
1 files changed, 6 insertions, 0 deletions
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")]