File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 40
40
#include < libaudcore/runtime.h>
41
41
#include < libaudcore/vfs.h>
42
42
43
+ #if (LIBSIDPLAYFP_VERSION_MAJ > 2) || \
44
+ (LIBSIDPLAYFP_VERSION_MAJ == 2 && LIBSIDPLAYFP_VERSION_MIN >= 10 )
45
+ #define HAVE_SIDPLAYFP_2_10
46
+ #endif
47
+
43
48
struct SidState {
44
49
sidplayfp *currEng;
45
50
sidbuilder *currBuilder;
@@ -99,11 +104,13 @@ bool xs_sidplayfp_init()
99
104
return false ;
100
105
}
101
106
107
+ #ifndef HAVE_SIDPLAYFP_2_10
102
108
state.currBuilder ->filter (xs_cfg.emulateFilters );
103
109
if (!state.currBuilder ->getStatus ()) {
104
110
AUDERR (" reSID->filter(%d) failed.\n " , xs_cfg.emulateFilters );
105
111
return false ;
106
112
}
113
+ #endif
107
114
108
115
config.sidEmulation = state.currBuilder ;
109
116
@@ -139,6 +146,13 @@ bool xs_sidplayfp_init()
139
146
return false ;
140
147
}
141
148
149
+ #ifdef HAVE_SIDPLAYFP_2_10
150
+ /* Call filter() after config() to have an effect */
151
+ state.currEng ->filter (0 , xs_cfg.emulateFilters );
152
+ state.currEng ->filter (1 , xs_cfg.emulateFilters );
153
+ state.currEng ->filter (2 , xs_cfg.emulateFilters );
154
+ #endif
155
+
142
156
/* Load ROMs */
143
157
VFSFile kernal_file (" file://" SIDDATADIR " /sidplayfp/kernal" , " r" );
144
158
VFSFile basic_file (" file://" SIDDATADIR " /sidplayfp/basic" , " r" );
You can’t perform that action at this time.
0 commit comments