1 #ifndef XS_CONFIG_H 2 #define XS_CONFIG_H 3 4 /* Configuration structure 5 */ 6 enum XS_CHANNELS { 7 XS_CHN_MONO = 1, 8 XS_CHN_STEREO = 2 9 }; 10 11 12 enum XS_CLOCK { 13 XS_CLOCK_PAL = 1, 14 XS_CLOCK_NTSC, 15 XS_CLOCK_VBI, 16 XS_CLOCK_CIA, 17 XS_CLOCK_ANY 18 }; 19 20 21 enum XS_SIDMODEL { 22 XS_SIDMODEL_UNKNOWN = 0, 23 XS_SIDMODEL_6581, 24 XS_SIDMODEL_8580, 25 XS_SIDMODEL_ANY 26 }; 27 28 29 extern struct xs_cfg_t { 30 /* General audio settings */ 31 int audioChannels; 32 int audioFrequency; 33 34 /* Emulation settings */ 35 bool mos8580; /* true = 8580, false = 6581 */ 36 bool forceModel; 37 int clockSpeed; /* PAL (50Hz) or NTSC (60Hz) */ 38 bool forceSpeed; /* true = force to given clockspeed */ 39 40 bool emulateFilters; 41 42 /* Playing settings */ 43 bool playMaxTimeEnable, 44 playMaxTimeUnknown; /* Use max-time only when song-length is unknown */ 45 int playMaxTime; /* MAX playtime in seconds */ 46 47 bool playMinTimeEnable; 48 int playMinTime; /* MIN playtime in seconds */ 49 50 /* Miscellaneous settings */ 51 bool subAutoEnable, 52 subAutoMinOnly; 53 int subAutoMinTime; 54 } xs_cfg; 55 56 57 /* Functions 58 */ 59 void xs_init_configuration(); 60 61 struct PluginPreferences; 62 extern const PluginPreferences sid_prefs; 63 64 #endif /* XS_CONFIG_H */ 65