diff options
| author | Aren <[email protected]> | 2017-02-07 16:17:06 +0100 |
|---|---|---|
| committer | Aren <[email protected]> | 2017-02-07 16:17:06 +0100 |
| commit | 28f0cda0c5c77d9db40c8f0433e494b1f50b31c6 (patch) | |
| tree | ce3d98316574afd9e552f9a1a9a6dac7fe816a4f | |
| parent | 82de84638ab857512181d5ed4ad0b5010bca1213 (diff) | |
| download | shiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.tar.gz shiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.tar.bz2 shiftos_thereturn-28f0cda0c5c77d9db40c8f0433e494b1f50b31c6.zip | |
Added audio.mute
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 6 |
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")] |
