mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-04-20 02:30:24 +00:00
Added audio.mute
This commit is contained in:
parent
82de84638a
commit
28f0cda0c5
1 changed files with 6 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Reference in a new issue