1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/*
* aRts ouput plugin for xmms
*
* Copyright (C) 2000,2003 Haavard Kvaalen <havardk@xmms.org>
*
* Licenced under GNU GPL version 2.
*/
#include "arts.h"
#include <xmms/configfile.h>
#include <xmms/util.h>
static void about(void)
{
static GtkWidget *dialog;
if (dialog)
return;
dialog = xmms_show_message("About aRts Output",
"aRts output plugin by "
"Hvard Kvlen <havardk@xmms.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 " VERSION,
artsxmms_init,
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,
};
OutputPlugin *get_oplugin_info(void)
{
return &arts_op;
}
|