Mercurial > audlegacy
annotate Plugins/Output/esd/esdout.h @ 993:a9ac4beb4e15 trunk
[svn] Use taglib for length determination. Simpler code, might also deal better with some VBR MP3s if they have length info in their tags.
author | chainsaw |
---|---|
date | Sun, 30 Apr 2006 17:59:55 -0700 |
parents | 55dc40ff1aff |
children | f12d7e208b43 |
rev | line source |
---|---|
61 | 1 /* BMP - Cross-platform multimedia player |
2 * Copyright (C) 2003-2004 BMP development team. | |
3 * | |
4 * Based on XMMS: | |
5 * Copyright (C) 1998-2003 XMMS development team. | |
6 * | |
7 * This program is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program; if not, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 */ | |
21 | |
22 #ifndef ESDOUT_H | |
23 #define ESDOUT_H | |
24 | |
25 #ifdef HAVE_CONFIG_H | |
26 # include "config.h" | |
27 #endif | |
28 | |
29 #include <glib.h> | |
30 | |
31 #include "audacious/plugin.h" | |
32 | |
33 | |
34 extern OutputPlugin op; | |
35 | |
36 typedef struct { | |
37 gboolean use_remote; | |
38 gboolean use_oss_mixer; | |
39 char *server; | |
40 char *hostname; | |
41 char *playername; | |
42 int port; | |
43 int buffer_size; | |
44 int prebuffer; | |
45 } ESDConfig; | |
46 | |
47 extern ESDConfig esd_cfg; | |
48 | |
49 void esdout_init(void); | |
50 void esdout_about(void); | |
51 void esdout_configure(void); | |
52 | |
53 void esdout_get_volume(int *l, int *r); | |
54 void esdout_fetch_volume(int *l, int *r); | |
55 void esdout_set_volume(int l, int r); | |
56 void esdout_mixer_init(void); | |
57 | |
58 int esdout_playing(void); | |
59 int esdout_free(void); | |
60 void esdout_write(void *ptr, int length); | |
61 void esdout_close(void); | |
62 void esdout_flush(int time); | |
63 void esdout_pause(short p); | |
64 int esdout_open(AFormat fmt, int rate, int nch); | |
65 int esdout_get_output_time(void); | |
66 int esdout_get_written_time(void); | |
67 void esdout_set_audio_params(void); | |
517
55dc40ff1aff
[svn] Add tell_audio(AFormat *, gint *, gint *), for retrieving audio
nenolod
parents:
61
diff
changeset
|
68 void esdout_tell(AFormat * fmt, gint * rate, gint * nch); |
61 | 69 |
70 #endif |