Mercurial > audlegacy-plugins
comparison src/Output/arts/arts.h @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
author | nenolod |
---|---|
date | Mon, 18 Sep 2006 01:11:49 -0700 |
parents | |
children | 088092a52fea |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13389e613d67 |
---|---|
1 /* | |
2 * aRts ouput plugin for xmms | |
3 * | |
4 * Copyright (C) 2000,2003 Haavard Kvaalen <havardk@xmms.org> | |
5 * | |
6 * Licenced under GNU GPL version 2. | |
7 * | |
8 * Audacious port by Giacomo Lozito from develia.org | |
9 * | |
10 */ | |
11 | |
12 #ifndef XMMS_ARTS_H | |
13 #define XMMS_ARTS_H | |
14 | |
15 #include <sys/types.h> | |
16 #include <sys/ioctl.h> | |
17 #include <sys/stat.h> | |
18 #include <sys/time.h> | |
19 | |
20 #include <fcntl.h> | |
21 #include <unistd.h> | |
22 | |
23 #include <stdlib.h> | |
24 #include <stdio.h> | |
25 #include <string.h> | |
26 | |
27 #include "audacious/plugin.h" | |
28 #include "libaudacious/configdb.h" | |
29 | |
30 struct arts_config | |
31 { | |
32 int buffer_size; | |
33 }; | |
34 | |
35 struct params_info | |
36 { | |
37 AFormat format; | |
38 int frequency; | |
39 int channels; | |
40 | |
41 /* Cache these */ | |
42 int bps; | |
43 int resolution; | |
44 }; | |
45 | |
46 extern struct arts_config artsxmms_cfg; | |
47 | |
48 void artsxmms_init(void); | |
49 void artsxmms_about(void); | |
50 void artsxmms_configure(void); | |
51 | |
52 void artsxmms_tell_audio( AFormat * , gint * , gint * ); | |
53 | |
54 void artsxmms_get_volume(int *l, int *r); | |
55 void artsxmms_set_volume(int l, int r); | |
56 | |
57 int artsxmms_playing(void); | |
58 int artsxmms_free(void); | |
59 void artsxmms_write(void *ptr, int length); | |
60 void artsxmms_close(void); | |
61 void artsxmms_flush(int time); | |
62 void artsxmms_pause(short p); | |
63 int artsxmms_open(AFormat fmt, int rate, int nch); | |
64 int artsxmms_get_output_time(void); | |
65 int artsxmms_get_written_time(void); | |
66 | |
67 int (*arts_get_convert_func(int input))(void **, int); | |
68 | |
69 | |
70 #endif |