annotate src/esd/esd.c @ 2952:63bf9d97ce65

- now cuesheet plugin calculates duration of subtune correctly even if pregap information is not available. - made cache_cue_file() not be called too frequently. - fixed handling for fraction in index calculation. - tweaked debug messages.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 14 Oct 2008 22:28:14 +0900
parents abe9f63c4e8b
children 3134a0987162
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1077
247737fdf8ce [svn] - esd: transition to plugin API v2
nenolod
parents: 527
diff changeset
1 /* xmms - esound output plugin
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
2 * Copyright (C) 1999 Galex Yen
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 * this program is free software
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 * Description:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
7 * This program is an output plugin for xmms v0.9 or greater.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
8 * The program uses the esound daemon to output audio in order
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
9 * to allow more than one program to play audio on the same
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
10 * device at the same time.
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 * Contains code Copyright (C) 1998-1999 Mikael Alm, Olle Hallnas,
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
13 * Thomas Nillson and 4Front Technologies
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 */
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 #include "esdout.h"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
18
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
19 #include <glib.h>
527
d124034ebea3 [svn] - glib/gi18n.h -> audacious/i18n.h for automatic dgettext support
nenolod
parents: 12
diff changeset
20 #include <audacious/i18n.h>
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
21
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
22
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
23 OutputPlugin esd_op = {
1627
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
24 .description = "ESD Output Plugin",
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
25 .init = esdout_init,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
26 .about = esdout_about,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
27 .configure = esdout_configure,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
28 .get_volume = esdout_get_volume,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
29 .set_volume = esdout_set_volume,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
30 .open_audio = esdout_open,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
31 .write_audio = esdout_write,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
32 .close_audio = esdout_close,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
33 .flush = esdout_flush,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
34 .pause = esdout_pause,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
35 .buffer_free = esdout_free,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
36 .buffer_playing = esdout_playing,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
37 .output_time = esdout_get_output_time,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
38 .written_time = esdout_get_written_time,
abe9f63c4e8b esd: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
39 .tell_audio = esdout_tell
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
40 };
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
41
1077
247737fdf8ce [svn] - esd: transition to plugin API v2
nenolod
parents: 527
diff changeset
42 OutputPlugin *esd_oplist[] = { &esd_op, NULL };
247737fdf8ce [svn] - esd: transition to plugin API v2
nenolod
parents: 527
diff changeset
43
1395
761e17b23e0c added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 1077
diff changeset
44 DECLARE_PLUGIN(esd, NULL, NULL, NULL, esd_oplist, NULL, NULL, NULL, NULL);