Mercurial > hg > xmms-sid
annotate src/xmms-sid.h @ 62:0d1df20745dd
Started to rewrite STIL-support
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2003 11:38:00 +0000 |
parents | dae6d3c2268d |
children | bf7b647b3239 |
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 */ |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
43 #define XS_CONFIG_FILE "/.xmms/xmms-sid" /* Use this configfile if autocyrpe fails */ |
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
44 |
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
45 #define XS_STIL_MAXENTRY (48) /* Max number of sub-songs in STIL/SLDB node */ |
50
dae6d3c2268d
Minor fixes, updated to support default XMMS configfile
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
46 |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
47 #define XS_MIN_OVERSAMPLE (2) /* Minimum oversampling factor */ |
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
48 #define XS_MAX_OVERSAMPLE (8) /* Maximum oversampling factor */ |
1 | 49 |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
50 |
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
51 extern InputPlugin xs_plugin_ip; /* XMMS-SID plugin structure */ |
1 | 52 |
53 | |
54 /* | |
3 | 55 * Plugin function prototypes |
1 | 56 */ |
57 void xs_init(void); | |
3 | 58 void xs_close(void); |
1 | 59 int xs_is_our_file(char *); |
60 void xs_play_file(char *); | |
61 void xs_stop(void); | |
62 void xs_pause(short); | |
63 void xs_seek(int); | |
64 int xs_get_time(void); | |
65 void xs_get_song_info(char *, char **, int *); | |
3 | 66 // void xs_file_info_box(char *); |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
67 void xs_about(void); |
1 | 68 |
69 | |
70 /* | |
71 * Debugging and error handling macros | |
72 */ | |
73 #ifdef DEBUG | |
74 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } | |
75 #else | |
76 #define XSDEBUG(x...) /* foo */ | |
77 #endif | |
78 | |
24 | 79 #define XSERR(x...) { fprintf(stderr, PACKAGE_NAME ": "); fprintf(stderr, ## x); } |
1 | 80 |
81 | |
82 #ifdef __cplusplus | |
83 } | |
84 #endif | |
3 | 85 #endif /* XMMS_SID_H */ |