Mercurial > audlegacy
annotate audacious/input.h @ 604:8e1a0719e4a5 trunk
[svn] ditto
author | nenolod |
---|---|
date | Fri, 03 Feb 2006 06:38:16 -0800 |
parents | 1c701dfe5098 |
children | ed26947bbf57 |
rev | line source |
---|---|
0 | 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 INPUT_H | |
23 #define INPUT_H | |
24 | |
25 #include "plugin.h" | |
26 | |
27 typedef struct _InputPluginData InputPluginData; | |
28 | |
29 struct _InputPluginData { | |
30 GList *input_list; | |
31 InputPlugin *current_input_plugin; | |
32 gboolean playing; | |
33 gboolean paused; | |
143 | 34 GMutex *playback_mutex; |
0 | 35 }; |
36 | |
37 GList *get_input_list(void); | |
38 InputPlugin *get_current_input_plugin(void); | |
39 void set_current_input_plugin(InputPlugin * ip); | |
40 InputVisType input_get_vis_type(); | |
41 void free_vis_data(void); | |
355
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
143
diff
changeset
|
42 InputPlugin *input_check_file(const gchar * filename, gboolean show_warning); |
0 | 43 void input_play(gchar * filename); |
44 void input_stop(void); | |
45 void input_pause(void); | |
46 gint input_get_time(void); | |
47 void input_set_eq(gint on, gfloat preamp, gfloat * bands); | |
48 void input_seek(gint time); | |
49 void input_get_song_info(const gchar * filename, gchar ** title, | |
50 gint * length); | |
51 guchar *input_get_vis(gint time); | |
52 void input_update_vis_plugin(gint time); | |
53 gchar *input_get_info_text(void); | |
54 void input_about(gint index); | |
55 void input_configure(gint index); | |
56 void input_add_vis(gint time, guchar * s, InputVisType type); | |
57 void input_add_vis_pcm(gint time, AFormat fmt, gint nch, gint length, | |
58 gpointer ptr); | |
59 InputVisType input_get_vis_type(); | |
60 void input_update_vis(gint time); | |
61 | |
62 void input_set_info_text(const gchar * text); | |
63 | |
64 GList *input_scan_dir(const gchar * dir); | |
65 void input_get_volume(gint * l, gint * r); | |
66 void input_set_volume(gint l, gint r); | |
67 void input_file_info_box(const gchar * filename); | |
68 | |
69 void input_file_not_playable(const gchar * filename); | |
70 gboolean input_is_disabled(const gchar * filename); | |
71 gboolean input_is_enabled(const gchar * filename); | |
72 gchar *input_stringify_disabled_list(void); | |
73 | |
74 extern InputPluginData ip_data; | |
75 extern gchar *input_info_text; | |
76 | |
77 | |
78 #endif |