AudioServer: Ignore 'muted' clients when computing the 'output mix'

This commit is contained in:
Elyse 2021-11-01 19:20:38 -06:00 committed by Brian Gianforcaro
parent bb747c471f
commit fb109ab3b4
Notes: sideshowbarker 2024-07-17 22:17:12 +09:00

View file

@ -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;