aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Switch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r--Ryujinx.HLE/Switch.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs
index 4bd1fe39..de0f98e4 100644
--- a/Ryujinx.HLE/Switch.cs
+++ b/Ryujinx.HLE/Switch.cs
@@ -124,7 +124,7 @@ namespace Ryujinx.HLE
public void SetVolume(float volume)
{
- System.SetVolume(volume);
+ System.SetVolume(Math.Clamp(volume, 0, 1));
}
public float GetVolume()