Mercurial > hg > xmms-sid
annotate 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 |
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 |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
42 #define XS_MIN_OVERSAMPLE (2) |
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
43 #define XS_MAX_OVERSAMPLE (8) |
1 | 44 |
3 | 45 extern InputPlugin xs_plugin_ip; |
1 | 46 |
47 | |
48 /* | |
3 | 49 * Plugin function prototypes |
1 | 50 */ |
51 void xs_init(void); | |
3 | 52 void xs_close(void); |
1 | 53 int xs_is_our_file(char *); |
54 void xs_play_file(char *); | |
55 void xs_stop(void); | |
56 void xs_pause(short); | |
57 void xs_seek(int); | |
58 int xs_get_time(void); | |
59 void xs_get_song_info(char *, char **, int *); | |
3 | 60 // void xs_file_info_box(char *); |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
61 void xs_about(void); |
1 | 62 |
63 | |
64 /* | |
65 * Debugging and error handling macros | |
66 */ | |
67 #ifdef DEBUG | |
68 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } | |
69 #else | |
70 #define XSDEBUG(x...) /* foo */ | |
71 #endif | |
72 | |
24 | 73 #define XSERR(x...) { fprintf(stderr, PACKAGE_NAME ": "); fprintf(stderr, ## x); } |
1 | 74 |
75 | |
76 #ifdef __cplusplus | |
77 } | |
78 #endif | |
3 | 79 #endif /* XMMS_SID_H */ |