summaryrefslogtreecommitdiff
path: root/Libraries/LibAudio/AClientConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibAudio/AClientConnection.cpp')
-rw-r--r--Libraries/LibAudio/AClientConnection.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibAudio/AClientConnection.cpp b/Libraries/LibAudio/AClientConnection.cpp
index 66f107b933..6ca9c2e2c0 100644
--- a/Libraries/LibAudio/AClientConnection.cpp
+++ b/Libraries/LibAudio/AClientConnection.cpp
@@ -32,6 +32,16 @@ bool AClientConnection::try_enqueue(const ABuffer& buffer)
return response->success();
}
+bool AClientConnection::get_muted()
+{
+ return send_sync<AudioServer::GetMuted>()->muted();
+}
+
+void AClientConnection::set_muted(bool muted)
+{
+ send_sync<AudioServer::SetMuted>(muted);
+}
+
int AClientConnection::get_main_mix_volume()
{
return send_sync<AudioServer::GetMainMixVolume>()->volume();