mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
AudioServer: Ignore 'muted' clients when computing the 'output mix'
This commit is contained in:
parent
bb747c471f
commit
fb109ab3b4
Notes:
sideshowbarker
2024-07-17 22:17:12 +09:00
Author: https://github.com/elyse0 Commit: https://github.com/SerenityOS/serenity/commit/fb109ab3b4c Pull-request: https://github.com/SerenityOS/serenity/pull/11161 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue