mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-28 02:26:13 +00:00
audio_core/hle/mixers.cpp: fix dirty flag checks (#7048)
This commit is contained in:
parent
492aa3cb10
commit
2961dcf0fd
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue