diff options
author | Elyse <kevincristian@outlook.com> | 2021-11-01 19:20:38 -0600 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-24 00:19:01 -0800 |
commit | fb109ab3b4cc3a903e45a537c5a68fed25365085 (patch) | |
tree | a8ec620a423f8b7d12594f92e264a6e7d0a962e9 /Userland/Services | |
parent | bb747c471f454e794200a2ef536d8e0f4803ba27 (diff) | |
download | serenity-fb109ab3b4cc3a903e45a537c5a68fed25365085.zip |
AudioServer: Ignore 'muted' clients when computing the 'output mix'
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/AudioServer/Mixer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/AudioServer/Mixer.cpp b/Userland/Services/AudioServer/Mixer.cpp index 879b38fe24..7b26baea73 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; |