mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05: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;
|
||||
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…
Add table
Reference in a new issue