File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,13 @@ bool xs_sidplayfp_init()
99
99
return false ;
100
100
}
101
101
102
+ #if (LIBSIDPLAYFP_VERSION_MAJ << 8) + LIBSIDPLAYFP_VERSION_MIN < 0x020A
102
103
state.currBuilder ->filter (xs_cfg.emulateFilters );
103
104
if (!state.currBuilder ->getStatus ()) {
104
105
AUDERR (" reSID->filter(%d) failed.\n " , xs_cfg.emulateFilters );
105
106
return false ;
106
107
}
108
+ #endif
107
109
108
110
config.sidEmulation = state.currBuilder ;
109
111
@@ -139,6 +141,13 @@ bool xs_sidplayfp_init()
139
141
return false ;
140
142
}
141
143
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
+
142
151
/* Load ROMs */
143
152
VFSFile kernal_file (" file://" SIDDATADIR " /sidplayfp/kernal" , " r" );
144
153
VFSFile basic_file (" file://" SIDDATADIR " /sidplayfp/basic" , " r" );
You can’t perform that action at this time.
0 commit comments