Mercurial > audlegacy
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Plugins/Output/arts/arts.c Thu Mar 09 09:55:56 2006 -0800 @@ -0,0 +1,60 @@ +/* + * aRts ouput plugin for xmms + * + * Copyright (C) 2000,2003 Haavard Kvaalen <havardk@xmms.org> + * + * Licenced under GNU GPL version 2. + * + * Audacious port by Giacomo Lozito from develia.org + * + */ + +#include "arts.h" +#include "libaudacious/configfile.h" +#include "libaudacious/util.h" + +static void about(void) +{ + static GtkWidget *dialog; + + if (dialog) + return; + + dialog = xmms_show_message("About aRts Output", + "aRts output plugin by " + "H\303\245vard Kv\303\245len <havardk@xmms.org>\n" + "Audacious port by Giacomo Lozito from develia.org", + "Ok", FALSE, NULL, NULL); + gtk_signal_connect(GTK_OBJECT(dialog), "destroy", + GTK_SIGNAL_FUNC(gtk_widget_destroyed), + &dialog); +} + + +OutputPlugin arts_op = +{ + NULL, + NULL, + "aRts Output Plugin 0.7.1", + artsxmms_init, + NULL, + about, + artsxmms_configure, + artsxmms_get_volume, + artsxmms_set_volume, + artsxmms_open, + artsxmms_write, + artsxmms_close, + artsxmms_flush, + artsxmms_pause, + artsxmms_free, + artsxmms_playing, + artsxmms_get_output_time, + artsxmms_get_written_time, + artsxmms_tell_audio +}; + +OutputPlugin *get_oplugin_info(void) +{ + return &arts_op; +}