From fb109ab3b4cc3a903e45a537c5a68fed25365085 Mon Sep 17 00:00:00 2001 From: Elyse Date: Mon, 1 Nov 2021 19:20:38 -0600 Subject: [PATCH] AudioServer: Ignore 'muted' clients when computing the 'output mix' --- Userland/Services/AudioServer/Mixer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Services/AudioServer/Mixer.cpp b/Userland/Services/AudioServer/Mixer.cpp index 879b38fe246..7b26baea733 100644 --- a/Userland/Services/AudioServer/Mixer.cpp +++ b/Userland/Services/AudioServer/Mixer.cpp @@ -97,6 +97,8 @@ void Mixer::mix() Audio::Sample sample; if (!queue->get_next_sample(sample)) break; + if (queue->is_muted()) + continue; sample.log_multiply(SAMPLE_HEADROOM); sample.log_multiply(queue->volume()); mixed_sample += sample;