view src/xs_config.h @ 24:271be59be975

Lots of changes
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Jun 2003 12:42:05 +0000
parents 5caef90c4ffd
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 */