mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
AudioServer: Ignore 'muted' clients when computing the 'output mix'
This commit is contained in:
parent
bb747c471f
commit
fb109ab3b4
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ void Mixer::mix()
|
||||||
Audio::Sample sample;
|
Audio::Sample sample;
|
||||||
if (!queue->get_next_sample(sample))
|
if (!queue->get_next_sample(sample))
|
||||||
break;
|
break;
|
||||||
|
if (queue->is_muted())
|
||||||
|
continue;
|
||||||
sample.log_multiply(SAMPLE_HEADROOM);
|
sample.log_multiply(SAMPLE_HEADROOM);
|
||||||
sample.log_multiply(queue->volume());
|
sample.log_multiply(queue->volume());
|
||||||
mixed_sample += sample;
|
mixed_sample += sample;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue