Skip to content

Commit 6d48430

Browse files
1 parent ac48256 commit 6d48430

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sid/xs_sidplay2.cc

+9
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ bool xs_sidplayfp_init()
9999
return false;
100100
}
101101

102+
#if (LIBSIDPLAYFP_VERSION_MAJ << 8) + LIBSIDPLAYFP_VERSION_MIN < 0x020A
102103
state.currBuilder->filter(xs_cfg.emulateFilters);
103104
if (!state.currBuilder->getStatus()) {
104105
AUDERR("reSID->filter(%d) failed.\n", xs_cfg.emulateFilters);
105106
return false;
106107
}
108+
#endif
107109

108110
config.sidEmulation = state.currBuilder;
109111

@@ -139,6 +141,13 @@ bool xs_sidplayfp_init()
139141
return false;
140142
}
141143

144+
#if (LIBSIDPLAYFP_VERSION_MAJ << 8) + LIBSIDPLAYFP_VERSION_MIN >= 0x020A
145+
/* Call filter() after config() to have an effect */
146+
state.currEng->filter(0, xs_cfg.emulateFilters);
147+
state.currEng->filter(1, xs_cfg.emulateFilters);
148+
state.currEng->filter(2, xs_cfg.emulateFilters);
149+
#endif
150+
142151
/* Load ROMs */
143152
VFSFile kernal_file("file://" SIDDATADIR "/sidplayfp/kernal", "r");
144153
VFSFile basic_file("file://" SIDDATADIR "/sidplayfp/basic", "r");

0 commit comments

Comments
 (0)