# HG changeset patch # User Matti Hamalainen # Date 1054757884 0 # Node ID 5caef90c4ffd7e4edd239c51b68bcdbfa896ce45 # Parent 72a51b360b6611e6074ad1737b50253da5bd35af Added paski diff -r 72a51b360b66 -r 5caef90c4ffd src/xs_config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/xs_config.h Wed Jun 04 20:18:04 2003 +0000 @@ -0,0 +1,106 @@ +#ifndef XS_CONFIG_H +#define XS_CONFIG_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Configuration structure + */ +enum XMMS_SID_CHN { + XMMS_SID_CHN_MONO = 0, + XMMS_SID_CHN_STEREO, + XMMS_SID_CHN_AUTOPAN +}; + + +enum XMMS_SID_CLOCK { + XMMS_SID_CLOCK_PAL = 1, + XMMS_SID_CLOCK_NTSC +}; + + +enum XMMS_SID_MPU { + XMMS_SID_MPU_BANK_SWITCHING = 1, + XMMS_SID_MPU_TRANSPARENT_ROM, + XMMS_SID_MPU_PLAYSID_ENVIRONMENT +}; + + +enum XMMS_SID_PMETHOD { + XMMS_SID_PMETHOD_NONE = 0, + XMMS_SID_PMETHOD_MAXSILENCE, + XMMS_SID_PMETHOD_DATABASE +}; + + +extern struct t_xs_cfg { + gint fmtBitsPerSample; + gint fmtChannels; + gint fmtFrequency; + + gboolean muffledOutput; + gboolean addStaticNoise; + + + gboolean mos8580; + gboolean emulateFilter; + gfloat filterFs; + gfloat filterFm; + gfloat filterFt; + gint memoryMode; + gint clockSpeed; + gboolean forceSpeed; + + + gboolean playUseMaxTime; + gint playMaxTime; + gint playMethod; + gint playMaxSilentTime; + gint playSilentPercent; + gchar *playDBPath; + + + gboolean useSTIL; + gchar *STILpath; + + gboolean finfoUseColors; + gboolean detectMagic; + + + gboolean titleOverride; + gchar *titleFormat; +} xs_cfg; + + +/* + * Configuration-file + */ +enum { + ATYPE_INT = 1, + ATYPE_FLOAT, + ATYPE_STR, + ATYPE_BOOL +}; + + +typedef struct { + gint atype; /* Type of item (ATYPE_*) */ + void *adata; /* Pointer to variable */ + gchar *aname; /* Name of configuration item */ +} t_xs_cfg_item; + + +/* + * Functions + */ +void xs_configure(void); +void xs_get_configure(void); + + +#ifdef __cplusplus +} +#endif +#endif /* XS_CONFIG_H */