From 54d36a7d1be037293ab9c2a8dff3944e58a1fc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 29 Oct 2020 15:17:29 +0100 Subject: [PATCH] mixer: apply config on new sessions Updating the config and using its settings instead of only reporting the new session allows to apply stored channel settings immediately. In case of Sculpt this is useful when an existing launcher already contains a valid config that sets the volume levels appropiately or the 'recall_fs' is used. Fixes #3930. --- repos/os/src/server/mixer/mixer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/src/server/mixer/mixer.cc b/repos/os/src/server/mixer/mixer.cc index e7385a1ec4..2587fc874a 100644 --- a/repos/os/src/server/mixer/mixer.cc +++ b/repos/os/src/server/mixer/mixer.cc @@ -601,7 +601,7 @@ class Audio_out::Mixer } _channels[ch].insert(&session); - _report_channels(); + _handle_config_update(); } /** @@ -616,7 +616,7 @@ class Audio_out::Mixer } _channels[ch].remove(&session); - _report_channels(); + _handle_config_update(); } /**