diff src/xmms-sid.h @ 3:279b1e12df2b

Updated to version 0.8-devel
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jun 2003 11:00:02 +0000
parents 183e7cbc1036
children 271be59be975
line wrap: on
line diff
--- a/src/xmms-sid.h	Tue Jun 03 10:29:02 2003 +0000
+++ b/src/xmms-sid.h	Tue Jun 03 11:00:02 2003 +0000
@@ -1,9 +1,9 @@
 /*  
-   xmms-sid - SIDPlay input plugin for X MultiMedia System (XMMS)
+   XMMS-SID - SIDPlay input plugin for X MultiMedia System (XMMS)
 
    Main header file
 
-   Written by Matti "ccr" Hamalainen <mhamalai@ratol.fi>
+   Written by Matti "ccr" Hamalainen <ccr@tnsp.org>
    (few bits may still be by Willem Monsuwe)
 
    This program is free software; you can redistribute it and/or modify
@@ -20,12 +20,10 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
-/*
- #define DEBUG
-*/
+#define DEBUG
 
-#ifndef _XMMS_SID_H
-#define _XMMS_SID_H
+#ifndef XMMS_SID_H
+#define XMMS_SID_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -34,71 +32,22 @@
 #include <glib.h>
 #include <xmms/plugin.h>
 
-extern InputPlugin xmms_sid_ip;
-
 /*
- *	Configuration structure
+ * Generals
  */
-#define XMMS_SID_CONFIG_IDENT		"XMMS-SID"
-#define XMMS_SID_BUFSIZE		4096
-#define XMMS_SID_NAME			"xmms-sid"
-
-#define XMMS_SID_CHN_MONO		0
-#define XMMS_SID_CHN_STEREO		1
-#define XMMS_SID_CHN_AUTOPAN		2
-
-#define XMMS_SID_CLOCK_PAL		1
-#define XMMS_SID_CLOCK_NTSC		2
-
-#define XMMS_SID_DEFAULT_FILTERFS	400.0
-#define XMMS_SID_DEFAULT_FILTERFM	60.0
-#define XMMS_SID_DEFAULT_FILTERFT	0.05
+#define XMMS_SID_NAME		"XMMS-SID"	/* Plugin name */
+#define XMMS_SID_CONFIG_IDENT	"XMMS-SID"	/* Configuration file identifier */
+#define XMMS_SID_BUFSIZE	4096		/* Size for some buffers */
 
-#define XMMS_SID_MPU_BANK_SWITCHING		1
-#define XMMS_SID_MPU_TRANSPARENT_ROM		2
-#define XMMS_SID_MPU_PLAYSID_ENVIRONMENT	3
 
-extern struct T_sid_cfg {
-	gint bitsPerSample;
-	gint channels;
-	gint frequency;
-	gboolean mos8580;
-	gboolean emulateFilter;
-	gfloat filterFs;
-	gfloat filterFm;
-	gfloat filterFt;
-	gint memoryMode;
-	gint clockSpeed;
-	gboolean forceSpeed;
-	gboolean detectMagic;
-	gboolean usestil;
-	gchar *stilpath;
-	gchar *fileInfo;
-} xs_cfg;
+extern InputPlugin xs_plugin_ip;
 
 
 /*
- *	Configuration specific stuff
- */
-enum {
-	ATYPE_INT = 1,
-	ATYPE_FLOAT,
-	ATYPE_STR,
-	ATYPE_BOOL
-};
-
-
-typedef struct {
-	int	atype;
-	void	*adata;
-	gchar	*aname;
-} T_sid_cfg_entry;
-
-
-/*
- *	General plugin function prototypes
+ * Plugin function prototypes
  */
 void	xs_init(void);
+void	xs_close(void);
 int	xs_is_our_file(char *);
 void	xs_play_file(char *);
 void	xs_stop(void);
@@ -106,32 +55,10 @@
 void	xs_seek(int);
 int	xs_get_time(void);
 void	xs_get_song_info(char *, char **, int *);
-void	xs_file_info_box(char *);
-void	xs_configure(void);
-void	xs_get_configure(void);
-void	xs_aboutbox(void);
-int	xs_stil_get(gchar *);
-
-int	xs_strcalloc(gchar **, gchar *);
-void	xs_stil_clear(void);
-
-/*
- *	STIL information specific
- */
-#define XMMS_SID_STIL_MAXENTRY	64
-
-typedef struct {
-	gchar *title;
-	gchar *name;
-	gchar *artist;
-	gchar *comment;
-} T_sid_stil_subtune;
+// void	xs_file_info_box(char *);
 
 
-extern struct T_sid_stil_info {
-	T_sid_stil_subtune subtune[XMMS_SID_STIL_MAXENTRY];	
-} xs_stil_info;
-
+#define	LWW lookup_widget
 
 /*
  * Debugging and error handling macros
@@ -148,4 +75,4 @@
 #ifdef __cplusplus
 }
 #endif
-#endif /* _XMMS_SID_H */
+#endif /* XMMS_SID_H */