Mercurial > audlegacy-plugins
annotate src/arts/arts.c @ 2202:f76e846d53d9
updating TLEN frame returned
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Mon, 03 Dec 2007 01:26:57 +0300 |
parents | 2ebeb7816c5e |
children | bd3a24b39058 |
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" |
1950
2ebeb7816c5e
Change from "" to <>-style includes. With thanks to ccr for the correct sed voodoo.
chainsaw@localhost
parents:
1723
diff
changeset
|
13 #include <audacious/util.h> |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
14 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
15 static void about(void) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
16 { |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
17 static GtkWidget *dialog; |
1318
a9a97179a1f9
I will be ready for Audacious 2...
Stany HENRY <StrassBoy@gmail.com>
parents:
1104
diff
changeset
|
18 |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
19 if (dialog) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
20 return; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
21 |
1677
f6f5603a0954
xmms_show_message() changed to audacious_info_dialog()
Matti Hamalainen <ccr@tnsp.org>
parents:
1395
diff
changeset
|
22 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
|
23 _("aRts output plugin by " |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
24 "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
|
25 "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
|
26 _("Ok"), FALSE, NULL, NULL); |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
27 gtk_signal_connect(GTK_OBJECT(dialog), "destroy", |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
28 GTK_SIGNAL_FUNC(gtk_widget_destroyed), |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
29 &dialog); |
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 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
33 OutputPlugin arts_op = |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
34 { |
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
|
35 .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
|
36 .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
|
37 .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
|
38 .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
|
39 .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
|
40 .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
|
41 .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
|
42 .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
|
43 .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
|
44 .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
|
45 .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
|
46 .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
|
47 .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
|
48 .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
|
49 .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
|
50 .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
|
51 .tell_audio = artsxmms_tell_audio |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
52 }; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
53 |
1104 | 54 OutputPlugin *arts_oplist[] = { &arts_op, NULL }; |
55 | |
1395
761e17b23e0c
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
1318
diff
changeset
|
56 DECLARE_PLUGIN(arts, NULL, NULL, NULL, arts_oplist, NULL, NULL, NULL, NULL); |