mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Fix uninitialized bitset
Causes config reloads even when nothing changed.
This commit is contained in:
parent
27229da36f
commit
d1021749bc
|
@ -613,7 +613,6 @@ struct Pcsx2Config
|
||||||
NoSync,
|
NoSync,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
BITFIELD32()
|
BITFIELD32()
|
||||||
bool
|
bool
|
||||||
AdvancedVolumeControl : 1;
|
AdvancedVolumeControl : 1;
|
||||||
|
@ -637,6 +636,7 @@ struct Pcsx2Config
|
||||||
float VolumeAdjustLFE{ 0.0f };
|
float VolumeAdjustLFE{ 0.0f };
|
||||||
|
|
||||||
std::string OutputModule;
|
std::string OutputModule;
|
||||||
|
std::string BackendName;
|
||||||
|
|
||||||
SPU2Options();
|
SPU2Options();
|
||||||
|
|
||||||
|
@ -663,7 +663,8 @@ struct Pcsx2Config
|
||||||
OpEqu(VolumeAdjustSR) &&
|
OpEqu(VolumeAdjustSR) &&
|
||||||
OpEqu(VolumeAdjustLFE) &&
|
OpEqu(VolumeAdjustLFE) &&
|
||||||
|
|
||||||
OpEqu(OutputModule);
|
OpEqu(OutputModule) &&
|
||||||
|
OpEqu(BackendName);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const SPU2Options& right) const
|
bool operator!=(const SPU2Options& right) const
|
||||||
|
|
|
@ -692,6 +692,7 @@ VsyncMode Pcsx2Config::GetEffectiveVsyncMode() const
|
||||||
|
|
||||||
Pcsx2Config::SPU2Options::SPU2Options()
|
Pcsx2Config::SPU2Options::SPU2Options()
|
||||||
{
|
{
|
||||||
|
bitset = 0;
|
||||||
OutputModule = "cubeb";
|
OutputModule = "cubeb";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -717,6 +718,7 @@ void Pcsx2Config::SPU2Options::LoadSave(SettingsWrapper& wrap)
|
||||||
SettingsWrapSection("SPU2/Output");
|
SettingsWrapSection("SPU2/Output");
|
||||||
|
|
||||||
SettingsWrapEntry(OutputModule);
|
SettingsWrapEntry(OutputModule);
|
||||||
|
SettingsWrapEntry(BackendName);
|
||||||
SettingsWrapEntry(Latency);
|
SettingsWrapEntry(Latency);
|
||||||
SynchMode = static_cast<SynchronizationMode>(wrap.EntryBitfield(CURRENT_SETTINGS_SECTION, "SynchMode", static_cast<int>(SynchMode), static_cast<int>(SynchMode)));
|
SynchMode = static_cast<SynchronizationMode>(wrap.EntryBitfield(CURRENT_SETTINGS_SECTION, "SynchMode", static_cast<int>(SynchMode), static_cast<int>(SynchMode)));
|
||||||
SettingsWrapEntry(SpeakerConfiguration);
|
SettingsWrapEntry(SpeakerConfiguration);
|
||||||
|
|
Loading…
Reference in New Issue