Mercurial > hg > xmms-sid
view src/xs_config.h @ 35:3fcc147b253a
Updates towards 0.8beta0
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Jun 2003 20:13:00 +0000 |
parents | 271be59be975 |
children | 1788f4ce6a44 |
line wrap: on
line source
#ifndef XS_CONFIG_H #define XS_CONFIG_H #ifdef __cplusplus extern "C" { #endif #include <config.h> /* * 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 */