Mercurial > audlegacy-plugins
comparison src/Output/arts/arts.c @ 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 #include "arts.h" | |
13 #include "libaudacious/util.h" | |
14 | |
15 static void about(void) | |
16 { | |
17 static GtkWidget *dialog; | |
18 | |
19 if (dialog) | |
20 return; | |
21 | |
22 dialog = xmms_show_message("About aRts Output", | |
23 "aRts output plugin by " | |
24 "H\303\245vard Kv\303\245len <havardk@xmms.org>\n" | |
25 "Audacious port by Giacomo Lozito from develia.org", | |
26 "Ok", FALSE, NULL, NULL); | |
27 gtk_signal_connect(GTK_OBJECT(dialog), "destroy", | |
28 GTK_SIGNAL_FUNC(gtk_widget_destroyed), | |
29 &dialog); | |
30 } | |
31 | |
32 | |
33 OutputPlugin arts_op = | |
34 { | |
35 NULL, | |
36 NULL, | |
37 "aRts Output Plugin 0.7.1", | |
38 artsxmms_init, | |
39 NULL, | |
40 about, | |
41 artsxmms_configure, | |
42 artsxmms_get_volume, | |
43 artsxmms_set_volume, | |
44 artsxmms_open, | |
45 artsxmms_write, | |
46 artsxmms_close, | |
47 artsxmms_flush, | |
48 artsxmms_pause, | |
49 artsxmms_free, | |
50 artsxmms_playing, | |
51 artsxmms_get_output_time, | |
52 artsxmms_get_written_time, | |
53 artsxmms_tell_audio | |
54 }; | |
55 | |
56 OutputPlugin *get_oplugin_info(void) | |
57 { | |
58 return &arts_op; | |
59 } |