Mercurial > audlegacy
annotate src/audacious/output.h @ 3236:74a999f3f4d2
Unbreak XMMS/GTK1 file selector.
Pointed out by ccr.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 03 Aug 2007 22:17:41 -0500 |
parents | f1c756f39e6c |
children | a89a12aa4f2c |
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 | |
65 void produce_audio(gint, AFormat, gint, gint, gpointer, int *); | |
66 | |
67 gint get_written_time(void); | |
68 gint get_output_time(void); | |
69 | |
70 extern OutputPlugin psuedo_output_plugin; | |
71 extern OutputPluginData op_data; | |
72 | |
73 #endif |