comparison src/xs_config.h @ 40:1788f4ce6a44

Numerous changes towards 0.8
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Jun 2003 22:38:01 +0000
parents 271be59be975
children 90cd38b28a72
comparison
equal deleted inserted replaced
39:85a7753e2a9a 40:1788f4ce6a44
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <config.h> 8 #include <xmms-sid.h>
9
10 /*
11 * Constants
12 */
13 #define XS_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */
14 #define XS_CONFIG_FILE "/.xmms/config"
15
9 16
10 /* 17 /*
11 * Configuration structure 18 * Configuration structure
12 */ 19 */
13 enum XMMS_SID_CHN { 20 enum XS_RES {
14 XMMS_SID_CHN_MONO = 0, 21 XS_RES_8BIT = 8,
15 XMMS_SID_CHN_STEREO, 22 XS_RES_16BIT = 16,
16 XMMS_SID_CHN_AUTOPAN 23 XS_RES_24BIT = 24
24 };
25
26 enum XS_CHN {
27 XS_CHN_MONO = 1,
28 XS_CHN_STEREO = 2,
29 XS_CHN_AUTOPAN = 3
17 }; 30 };
18 31
19 32
20 enum XMMS_SID_CLOCK { 33 enum XS_CLOCK {
21 XMMS_SID_CLOCK_PAL = 1, 34 XS_CLOCK_PAL = 1,
22 XMMS_SID_CLOCK_NTSC 35 XS_CLOCK_NTSC
23 }; 36 };
24 37
25 38
26 enum XMMS_SID_MPU { 39 enum XS_EMUENGINE {
27 XMMS_SID_MPU_BANK_SWITCHING = 1, 40 XS_SIDPLAY1 = 1,
28 XMMS_SID_MPU_TRANSPARENT_ROM, 41 XS_SIDPLAY2
29 XMMS_SID_MPU_PLAYSID_ENVIRONMENT
30 }; 42 };
31 43
32 44
33 enum XMMS_SID_PMETHOD { 45 enum XS_MPU {
34 XMMS_SID_PMETHOD_NONE = 0, 46 XS_MPU_BANK_SWITCHING = 1,
35 XMMS_SID_PMETHOD_MAXSILENCE, 47 XS_MPU_TRANSPARENT_ROM,
36 XMMS_SID_PMETHOD_DATABASE 48 XS_MPU_PLAYSID_ENVIRONMENT
37 }; 49 };
38 50
39 51
40 extern struct t_xs_cfg { 52 extern struct t_xs_cfg {
41 gint fmtBitsPerSample; 53 /* General audio settings */
42 gint fmtChannels; 54 gint fmtBitsPerSample;
43 gint fmtFrequency; 55 gint fmtChannels;
44 56 gint fmtFrequency;
45 gboolean muffledOutput;
46 gboolean addStaticNoise;
47 57
48 58
49 gboolean mos8580; 59 /* General libSIDPlay settings */
50 gboolean emulateFilter; 60 gboolean mos8580; /* TRUE = 8580, FALSE = 6581 */
51 gfloat filterFs; 61 gboolean emulateFilters;
52 gfloat filterFm; 62 gfloat filterFs;
53 gfloat filterFt; 63 gfloat filterFm;
54 gint memoryMode; 64 gfloat filterFt;
55 gint clockSpeed; 65 gint memoryMode;
56 gboolean forceSpeed; 66 gint clockSpeed; /* PAL (50Hz) or NTSC (60Hz) */
67 gboolean forceSpeed; /* TRUE = force to given clockspeed */
68
69 gboolean oversampleEnable; /* TRUE = oversample */
70 gint oversampleFactor; /* Factor of oversampling */
57 71
58 72
59 gboolean playUseMaxTime; 73 /* Playing settings */
60 gint playMaxTime; 74 gboolean playMaxTimeEnable; /* TRUE = use MAX playtime */
61 gint playMethod; 75 gint playMaxTime; /* MAX playtime in seconds */
62 gint playMaxSilentTime; 76 gboolean songlenDBEnable;
63 gint playSilentPercent; 77 gchar *songlenDBPath;
64 gchar *playDBPath;
65 78
66 79
67 gboolean useSTIL; 80 /* Miscellaneous settings */
68 gchar *STILpath; 81 gboolean stilDBEnable;
82 gchar *stilDBPath;
69 83
70 gboolean finfoUseColors; 84 gboolean detectMagic;
71 gboolean detectMagic;
72 85
73 86 gboolean titleOverride;
74 gboolean titleOverride; 87 gchar *titleFormat;
75 gchar *titleFormat;
76 } xs_cfg; 88 } xs_cfg;
77 89
78 90
79 /* 91 /*
80 * Configuration-file 92 * Configuration-file
96 108
97 /* 109 /*
98 * Functions 110 * Functions
99 */ 111 */
100 void xs_configure(void); 112 void xs_configure(void);
101 void xs_get_configure(void); 113 void xs_read_configuration(void);
114 gint xs_write_configuration(void);
102 115
103 116
104 #ifdef __cplusplus 117 #ifdef __cplusplus
105 } 118 }
106 #endif 119 #endif