Mercurial > audlegacy
comparison Plugins/Output/arts/arts.c @ 810:e9509e909193 trunk
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
author | giacomo |
---|---|
date | Thu, 09 Mar 2006 09:55:56 -0800 |
parents | |
children | 03712a532f1c |
comparison
equal
deleted
inserted
replaced
809:79da0e6ed790 | 810:e9509e909193 |
---|---|
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 #include "arts.h" | |
13 #include "libaudacious/configfile.h" | |
14 #include "libaudacious/util.h" | |
15 | |
16 static void about(void) | |
17 { | |
18 static GtkWidget *dialog; | |
19 | |
20 if (dialog) | |
21 return; | |
22 | |
23 dialog = xmms_show_message("About aRts Output", | |
24 "aRts output plugin by " | |
25 "H\303\245vard Kv\303\245len <havardk@xmms.org>\n" | |
26 "Audacious port by Giacomo Lozito from develia.org", | |
27 "Ok", FALSE, NULL, NULL); | |
28 gtk_signal_connect(GTK_OBJECT(dialog), "destroy", | |
29 GTK_SIGNAL_FUNC(gtk_widget_destroyed), | |
30 &dialog); | |
31 } | |
32 | |
33 | |
34 OutputPlugin arts_op = | |
35 { | |
36 NULL, | |
37 NULL, | |
38 "aRts Output Plugin 0.7.1", | |
39 artsxmms_init, | |
40 NULL, | |
41 about, | |
42 artsxmms_configure, | |
43 artsxmms_get_volume, | |
44 artsxmms_set_volume, | |
45 artsxmms_open, | |
46 artsxmms_write, | |
47 artsxmms_close, | |
48 artsxmms_flush, | |
49 artsxmms_pause, | |
50 artsxmms_free, | |
51 artsxmms_playing, | |
52 artsxmms_get_output_time, | |
53 artsxmms_get_written_time, | |
54 artsxmms_tell_audio | |
55 }; | |
56 | |
57 OutputPlugin *get_oplugin_info(void) | |
58 { | |
59 return &arts_op; | |
60 } |