#include "config.h"

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <pthread.h>
#include <gtk/gtk.h>
#include <xmms/plugin.h>
#include "xmp.h"
#ifdef __EMX__
#define PATH_MAX _POSIX_PATH_MAX
#endif

#ifdef DEBUG
#define _D(x...) { \
	fprintf(stderr, "[%s:%d] ", __PRETTY_FUNCTION__, __LINE__); \
	fprintf(stderr, x); fprintf(stderr, "\n"); } 
#else
#define _D(x...) do {} while(0)
#endif

#define FREQ_SAMPLE_44 0
#define FREQ_SAMPLE_22 1
#define FREQ_SAMPLE_11 2

extern InputPlugin xmp_ip;

typedef struct {
	gint mixing_freq;
	gint force8bit;
	gint force_mono;
	gint interpolation;
	gint convert8bit;
	gint fixloops;
	gint loop;
	gint modrange;
	gint pan_amplitude;
} XMPConfig;

extern XMPConfig xmp_cfg;

extern struct xmp_drv_info drv_xmms;


