Mercurial > hg > xmms-sid
diff src/xs_config.h @ 20:5caef90c4ffd
Added paski
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Jun 2003 20:18:04 +0000 |
parents | |
children | 271be59be975 |
line wrap: on
line diff
--- /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 */