From 2961dcf0fd3a711ac618b62e64ac82d7ee159182 Mon Sep 17 00:00:00 2001 From: SachinVin <26602104+SachinVin@users.noreply.github.com> Date: Sun, 8 Oct 2023 01:41:06 +0530 Subject: [PATCH] audio_core/hle/mixers.cpp: fix dirty flag checks (#7048) --- src/audio_core/hle/mixers.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/audio_core/hle/mixers.cpp b/src/audio_core/hle/mixers.cpp index cfa96818e..e3a838886 100644 --- a/src/audio_core/hle/mixers.cpp +++ b/src/audio_core/hle/mixers.cpp @@ -33,31 +33,31 @@ void Mixers::ParseConfig(DspConfiguration& config) { return; } - if (config.aux_bus_enable[0]) { + if (config.aux_bus_enable_0_dirty) { config.aux_bus_enable_0_dirty.Assign(0); state.aux_bus_enable[0] = config.aux_bus_enable[0] != 0; LOG_TRACE(Audio_DSP, "mixers aux_bus_enable[0] = {}", config.aux_bus_enable[0]); } - if (config.aux_bus_enable[1]) { + if (config.aux_bus_enable_1_dirty) { config.aux_bus_enable_1_dirty.Assign(0); state.aux_bus_enable[1] = config.aux_bus_enable[1] != 0; LOG_TRACE(Audio_DSP, "mixers aux_bus_enable[1] = {}", config.aux_bus_enable[1]); } - if (config.master_volume) { + if (config.master_volume_dirty) { config.master_volume_dirty.Assign(0); state.intermediate_mixer_volume[0] = config.master_volume; LOG_TRACE(Audio_DSP, "mixers master_volume = {}", config.master_volume); } - if (config.aux_return_volume[0]) { + if (config.aux_return_volume_0_dirty) { config.aux_return_volume_0_dirty.Assign(0); state.intermediate_mixer_volume[1] = config.aux_return_volume[0]; LOG_TRACE(Audio_DSP, "mixers aux_return_volume[0] = {}", config.aux_return_volume[0]); } - if (config.aux_return_volume[1]) { + if (config.aux_return_volume_1_dirty) { config.aux_return_volume_1_dirty.Assign(0); state.intermediate_mixer_volume[2] = config.aux_return_volume[1]; LOG_TRACE(Audio_DSP, "mixers aux_return_volume[1] = {}", config.aux_return_volume[1]);