annotate Plugins/Output/arts/arts.c @ 1034:03712a532f1c trunk

[svn] Convert from deprecated configfile interace to configdb, closes bug #494.
author chainsaw
date Sat, 13 May 2006 03:58:16 -0700
parents e9509e909193
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 #include "arts.h"
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
13 #include "libaudacious/util.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 static void about(void)
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
16 {
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
17 static GtkWidget *dialog;
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
18
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
19 if (dialog)
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
20 return;
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
21
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
22 dialog = xmms_show_message("About aRts Output",
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
23 "aRts output plugin by "
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
24 "H\303\245vard Kv\303\245len <havardk@xmms.org>\n"
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
25 "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
26 "Ok", FALSE, NULL, NULL);
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
27 gtk_signal_connect(GTK_OBJECT(dialog), "destroy",
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
28 GTK_SIGNAL_FUNC(gtk_widget_destroyed),
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
29 &dialog);
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
30 }
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
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
33 OutputPlugin arts_op =
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 NULL,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
36 NULL,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
37 "aRts Output Plugin 0.7.1",
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
38 artsxmms_init,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
39 NULL,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
40 about,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
41 artsxmms_configure,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
42 artsxmms_get_volume,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
43 artsxmms_set_volume,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
44 artsxmms_open,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
45 artsxmms_write,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
46 artsxmms_close,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
47 artsxmms_flush,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
48 artsxmms_pause,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
49 artsxmms_free,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
50 artsxmms_playing,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
51 artsxmms_get_output_time,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
52 artsxmms_get_written_time,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
53 artsxmms_tell_audio
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
54 };
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
55
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
56 OutputPlugin *get_oplugin_info(void)
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
57 {
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
58 return &arts_op;
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
diff changeset
59 }