Mercurial > audlegacy
comparison src/audacious/output.h @ 2313:3149d4b1a9a9 trunk
[svn] - objective-make autodepend fixes
- move all sourcecode into src/ and adjust Makefiles accordingly
author | nenolod |
---|---|
date | Fri, 12 Jan 2007 11:43:40 -0800 |
parents | |
children | 3b6d316f8b09 |
comparison
equal
deleted
inserted
replaced
2312:e1a5a66fb9cc | 2313:3149d4b1a9a9 |
---|---|
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 | |
12 * the Free Software Foundation; under version 2 of the License. | |
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 | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
22 */ | |
23 | |
24 #ifndef OUTPUT_H | |
25 #define OUTPUT_H | |
26 | |
27 #include <glib.h> | |
28 | |
29 #include "plugin.h" | |
30 | |
31 typedef struct _OutputPluginData OutputPluginData; | |
32 | |
33 struct _OutputPluginData { | |
34 GList *output_list; | |
35 OutputPlugin *current_output_plugin; | |
36 }; | |
37 | |
38 typedef struct _OutputPluginState OutputPluginState; | |
39 | |
40 struct _OutputPluginState { | |
41 AFormat fmt; | |
42 gint rate; | |
43 gint nch; | |
44 }; | |
45 | |
46 GList *get_output_list(void); | |
47 OutputPlugin *get_current_output_plugin(void); | |
48 void set_current_output_plugin(gint i); | |
49 void output_about(gint i); | |
50 void output_configure(gint i); | |
51 void output_get_volume(gint * l, gint * r); | |
52 void output_set_volume(gint l, gint r); | |
53 void output_set_eq(gboolean, gfloat, gfloat *); | |
54 gint output_open_audio(AFormat, gint, gint); | |
55 void output_write_audio(gpointer ptr, gint length); | |
56 void output_close_audio(void); | |
57 | |
58 void output_flush(gint); | |
59 void output_pause(gshort); | |
60 gint output_buffer_free(void); | |
61 gint output_buffer_playing(void); | |
62 | |
63 void produce_audio(gint, AFormat, gint, gint, gpointer, int *); | |
64 | |
65 gint get_written_time(void); | |
66 gint get_output_time(void); | |
67 | |
68 extern OutputPlugin psuedo_output_plugin; | |
69 extern OutputPluginData op_data; | |
70 | |
71 #endif |