Mercurial > hg > xmms-sid
annotate src/xmms-sid.h @ 50:dae6d3c2268d
Minor fixes, updated to support default XMMS configfile
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 21 Jun 2003 21:11:02 +0000 |
parents | 1788f4ce6a44 |
children | 0d1df20745dd |
rev | line source |
---|---|
1 | 1 /* |
3 | 2 XMMS-SID - SIDPlay input plugin for X MultiMedia System (XMMS) |
1 | 3 |
4 Main header file | |
5 | |
3 | 6 Written by Matti "ccr" Hamalainen <ccr@tnsp.org> |
1 | 7 (few bits may still be by Willem Monsuwe) |
8 | |
9 This program is free software; you can redistribute it and/or modify | |
10 it under the terms of the GNU General Public License as published by | |
11 the Free Software Foundation; either version 2 of the License, or | |
12 (at your option) any later version. | |
13 | |
14 This program is distributed in the hope that it will be useful, | |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 GNU General Public License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with this program; if not, write to the Free Software | |
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
22 */ | |
3 | 23 #define DEBUG |
1 | 24 |
3 | 25 #ifndef XMMS_SID_H |
26 #define XMMS_SID_H | |
1 | 27 |
28 #ifdef __cplusplus | |
29 extern "C" { | |
30 #endif | |
31 | |
24 | 32 #include <config.h> |
1 | 33 #include <glib.h> |
34 #include <xmms/plugin.h> | |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
35 #include <assert.h> |
1 | 36 |
37 /* | |
3 | 38 * Generals |
1 | 39 */ |
24 | 40 #define XS_BUFSIZE (4096) /* Size for some buffers */ |
1 | 41 |
50
dae6d3c2268d
Minor fixes, updated to support default XMMS configfile
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
42 #define XS_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */ |
dae6d3c2268d
Minor fixes, updated to support default XMMS configfile
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
43 #define XS_CONFIG_FILE "/.xmms/config" |
dae6d3c2268d
Minor fixes, updated to support default XMMS configfile
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
44 |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
45 #define XS_MIN_OVERSAMPLE (2) |
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
46 #define XS_MAX_OVERSAMPLE (8) |
1 | 47 |
3 | 48 extern InputPlugin xs_plugin_ip; |
1 | 49 |
50 | |
51 /* | |
3 | 52 * Plugin function prototypes |
1 | 53 */ |
54 void xs_init(void); | |
3 | 55 void xs_close(void); |
1 | 56 int xs_is_our_file(char *); |
57 void xs_play_file(char *); | |
58 void xs_stop(void); | |
59 void xs_pause(short); | |
60 void xs_seek(int); | |
61 int xs_get_time(void); | |
62 void xs_get_song_info(char *, char **, int *); | |
3 | 63 // void xs_file_info_box(char *); |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
64 void xs_about(void); |
1 | 65 |
66 | |
67 /* | |
68 * Debugging and error handling macros | |
69 */ | |
70 #ifdef DEBUG | |
71 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } | |
72 #else | |
73 #define XSDEBUG(x...) /* foo */ | |
74 #endif | |
75 | |
24 | 76 #define XSERR(x...) { fprintf(stderr, PACKAGE_NAME ": "); fprintf(stderr, ## x); } |
1 | 77 |
78 | |
79 #ifdef __cplusplus | |
80 } | |
81 #endif | |
3 | 82 #endif /* XMMS_SID_H */ |