Mercurial > audlegacy-plugins
annotate src/arts/arts.c @ 2896:35773e919dba
removed unsed mutex - and a dupplicate function call
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Wed, 13 Aug 2008 09:35:56 +0300 |
parents | bd3a24b39058 |
children |
rev | line source |
---|---|
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
1 /* |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
2 * aRts ouput plugin for xmms |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
3 * |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
4 * Copyright (C) 2000,2003 Haavard Kvaalen <havardk@xmms.org> |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
5 * |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
6 * Licenced under GNU GPL version 2. |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
7 * |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
8 * Audacious port by Giacomo Lozito from develia.org |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
9 * |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
10 */ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
11 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
12 #include "arts.h" |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
13 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
14 static void about(void) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
15 { |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
16 static GtkWidget *dialog; |
1318
a9a97179a1f9
I will be ready for Audacious 2...
Stany HENRY <StrassBoy@gmail.com>
parents:
1104
diff
changeset
|
17 |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
18 if (dialog) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
19 return; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
20 |
1677
f6f5603a0954
xmms_show_message() changed to audacious_info_dialog()
Matti Hamalainen <ccr@tnsp.org>
parents:
1395
diff
changeset
|
21 dialog = audacious_info_dialog(_("About aRts Output"), |
1318
a9a97179a1f9
I will be ready for Audacious 2...
Stany HENRY <StrassBoy@gmail.com>
parents:
1104
diff
changeset
|
22 _("aRts output plugin by " |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
23 "H\303\245vard Kv\303\245len <havardk@xmms.org>\n" |
1318
a9a97179a1f9
I will be ready for Audacious 2...
Stany HENRY <StrassBoy@gmail.com>
parents:
1104
diff
changeset
|
24 "Audacious port by Giacomo Lozito from develia.org"), |
a9a97179a1f9
I will be ready for Audacious 2...
Stany HENRY <StrassBoy@gmail.com>
parents:
1104
diff
changeset
|
25 _("Ok"), FALSE, NULL, NULL); |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
26 gtk_signal_connect(GTK_OBJECT(dialog), "destroy", |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
27 GTK_SIGNAL_FUNC(gtk_widget_destroyed), |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
28 &dialog); |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
29 } |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
30 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
31 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
32 OutputPlugin arts_op = |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
33 { |
1723
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
34 .description = "aRts Output Plugin", |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
35 .init = artsxmms_init, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
36 .cleanup = NULL, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
37 .about = about, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
38 .configure = artsxmms_configure, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
39 .get_volume = artsxmms_get_volume, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
40 .set_volume = artsxmms_set_volume, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
41 .open_audio = artsxmms_open, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
42 .write_audio = artsxmms_write, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
43 .close_audio = artsxmms_close, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
44 .flush = artsxmms_flush, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
45 .pause = artsxmms_pause, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
46 .buffer_free = artsxmms_free, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
47 .buffer_playing = artsxmms_playing, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
48 .output_time = artsxmms_get_output_time, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
49 .written_time = artsxmms_get_written_time, |
ff587f35467a
Made arts's use of OutputPlugin look more like OSS and alsa's so that the plugin will actually function
Daniel Bradshaw <nazca.audacious@the-cell.co.uk>
parents:
1677
diff
changeset
|
50 .tell_audio = artsxmms_tell_audio |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
51 }; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
52 |
1104 | 53 OutputPlugin *arts_oplist[] = { &arts_op, NULL }; |
54 | |
1395
761e17b23e0c
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
1318
diff
changeset
|
55 DECLARE_PLUGIN(arts, NULL, NULL, NULL, arts_oplist, NULL, NULL, NULL, NULL); |