Mercurial > audlegacy
annotate Plugins/Output/arts/arts.h @ 1388:b8e521f642e4 trunk
[svn] - when the playlist page of the preferences window is shown, the checkbox for filepopup follows the popup menu now.
- tweaks descriptions (s/song/entry/).
author | yaz |
---|---|
date | Mon, 10 Jul 2006 06:41:11 -0700 |
parents | 03712a532f1c |
children |
rev | line source |
---|---|
810
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
1 /* |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
2 * aRts ouput plugin for xmms |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
3 * |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
4 * Copyright (C) 2000,2003 Haavard Kvaalen <havardk@xmms.org> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
5 * |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
6 * Licenced under GNU GPL version 2. |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
7 * |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
8 * Audacious port by Giacomo Lozito from develia.org |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
9 * |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
10 */ |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
11 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
12 #ifndef XMMS_ARTS_H |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
13 #define XMMS_ARTS_H |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
14 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
15 #include <sys/types.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
16 #include <sys/ioctl.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
17 #include <sys/stat.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
18 #include <sys/time.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
19 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
20 #include <fcntl.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
21 #include <unistd.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
22 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
23 #include <stdlib.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
24 #include <stdio.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
25 #include <string.h> |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
26 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
27 #include "audacious/plugin.h" |
1034
03712a532f1c
[svn] Convert from deprecated configfile interace to configdb, closes bug #494.
chainsaw
parents:
810
diff
changeset
|
28 #include "libaudacious/configdb.h" |
810
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
29 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
30 struct arts_config |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
31 { |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
32 int buffer_size; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
33 }; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
34 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
35 struct params_info |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
36 { |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
37 AFormat format; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
38 int frequency; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
39 int channels; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
40 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
41 /* Cache these */ |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
42 int bps; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
43 int resolution; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
44 }; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
45 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
46 extern struct arts_config artsxmms_cfg; |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
47 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
48 void artsxmms_init(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
49 void artsxmms_about(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
50 void artsxmms_configure(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
51 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
52 void artsxmms_tell_audio( AFormat * , gint * , gint * ); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
53 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
54 void artsxmms_get_volume(int *l, int *r); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
55 void artsxmms_set_volume(int l, int r); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
56 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
57 int artsxmms_playing(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
58 int artsxmms_free(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
59 void artsxmms_write(void *ptr, int length); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
60 void artsxmms_close(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
61 void artsxmms_flush(int time); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
62 void artsxmms_pause(short p); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
63 int artsxmms_open(AFormat fmt, int rate, int nch); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
64 int artsxmms_get_output_time(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
65 int artsxmms_get_written_time(void); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
66 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
67 int (*arts_get_convert_func(int input))(void **, int); |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
68 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
69 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff
changeset
|
70 #endif |