Mercurial > audlegacy
annotate src/audacious/output.h @ 4412:180996fcf12a
bmp_config_* -> aud_config_*
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 31 Mar 2008 06:36:41 +0300 |
parents | 2d4b4f13d10d |
children | 2eee464379dc |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on BMP: | |
5 * Copyright (C) 2003-2004 BMP development team | |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2313
diff
changeset
|
12 * the Free Software Foundation; under version 3 of the License. |
2313 | 13 * |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2313
diff
changeset
|
20 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
21 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
22 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
23 * Audacious or using our public API to be a derived work. |
2313 | 24 */ |
25 | |
26 #ifndef OUTPUT_H | |
27 #define OUTPUT_H | |
28 | |
29 #include <glib.h> | |
30 | |
31 #include "plugin.h" | |
32 | |
33 typedef struct _OutputPluginData OutputPluginData; | |
34 | |
35 struct _OutputPluginData { | |
36 GList *output_list; | |
37 OutputPlugin *current_output_plugin; | |
38 }; | |
39 | |
40 typedef struct _OutputPluginState OutputPluginState; | |
41 | |
42 struct _OutputPluginState { | |
43 AFormat fmt; | |
44 gint rate; | |
45 gint nch; | |
46 }; | |
47 | |
48 GList *get_output_list(void); | |
49 OutputPlugin *get_current_output_plugin(void); | |
50 void set_current_output_plugin(gint i); | |
51 void output_about(gint i); | |
52 void output_configure(gint i); | |
53 void output_get_volume(gint * l, gint * r); | |
54 void output_set_volume(gint l, gint r); | |
55 void output_set_eq(gboolean, gfloat, gfloat *); | |
56 gint output_open_audio(AFormat, gint, gint); | |
57 void output_write_audio(gpointer ptr, gint length); | |
58 void output_close_audio(void); | |
59 | |
60 void output_flush(gint); | |
61 void output_pause(gshort); | |
62 gint output_buffer_free(void); | |
63 gint output_buffer_playing(void); | |
64 | |
3709
a89a12aa4f2c
Add InputPlayback::pass_audio() which replaces produce_audio().
William Pitcock <nenolod@atheme.org>
parents:
3123
diff
changeset
|
65 void output_pass_audio(InputPlayback *, AFormat, gint, gint, gpointer, int *); |
4235
2d4b4f13d10d
set_replaygain_info added to PAPI
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3709
diff
changeset
|
66 void output_set_replaygain_info(InputPlayback *, ReplayGainInfo *); |
2313 | 67 |
68 gint get_written_time(void); | |
69 gint get_output_time(void); | |
70 | |
71 extern OutputPlugin psuedo_output_plugin; | |
72 extern OutputPluginData op_data; | |
73 | |
74 #endif |