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.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs
index eeb0e7b9..29d2ddd4 100644
--- a/Ryujinx.HLE/Switch.cs
+++ b/Ryujinx.HLE/Switch.cs
@@ -146,6 +146,21 @@ namespace Ryujinx.HLE
Gpu.Window.Present(swapBuffersCallback);
}
+ public void SetVolume(float volume)
+ {
+ System.SetVolume(volume);
+ }
+
+ public float GetVolume()
+ {
+ return System.GetVolume();
+ }
+
+ public bool IsAudioMuted()
+ {
+ return System.GetVolume() == 0;
+ }
+
public void DisposeGpu()
{
Gpu.Dispose();