Mercurial > hg > xmms-sid
view src/xmms-sid.h @ 40:1788f4ce6a44
Numerous changes towards 0.8
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Jun 2003 22:38:01 +0000 |
parents | 271be59be975 |
children | dae6d3c2268d |
line wrap: on
line source
/* XMMS-SID - SIDPlay input plugin for X MultiMedia System (XMMS) Main header file 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 it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License 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 #ifndef XMMS_SID_H #define XMMS_SID_H #ifdef __cplusplus extern "C" { #endif #include <config.h> #include <glib.h> #include <xmms/plugin.h> #include <assert.h> /* * Generals */ #define XS_BUFSIZE (4096) /* Size for some buffers */ #define XS_MIN_OVERSAMPLE (2) #define XS_MAX_OVERSAMPLE (8) extern InputPlugin xs_plugin_ip; /* * 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); void xs_pause(short); 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_about(void); /* * Debugging and error handling macros */ #ifdef DEBUG #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } #else #define XSDEBUG(x...) /* foo */ #endif #define XSERR(x...) { fprintf(stderr, PACKAGE_NAME ": "); fprintf(stderr, ## x); } #ifdef __cplusplus } #endif #endif /* XMMS_SID_H */