Mercurial > audlegacy
annotate audacious/input.h @ 1042:286156196e16 trunk
[svn] - remove X11-incompliant dock.c, dock.h (sorry)
author | nenolod |
---|---|
date | Sun, 14 May 2006 10:31:46 -0700 |
parents | ed26947bbf57 |
children | 502b369314c1 |
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; | |
890
ed26947bbf57
[svn] Gapless support. This comes with a few caveats, that I will mention here:
nenolod
parents:
355
diff
changeset
|
34 gboolean stop; |
143 | 35 GMutex *playback_mutex; |
0 | 36 }; |
37 | |
38 GList *get_input_list(void); | |
39 InputPlugin *get_current_input_plugin(void); | |
40 void set_current_input_plugin(InputPlugin * ip); | |
41 InputVisType input_get_vis_type(); | |
42 void free_vis_data(void); | |
355
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
143
diff
changeset
|
43 InputPlugin *input_check_file(const gchar * filename, gboolean show_warning); |
0 | 44 void input_play(gchar * filename); |
45 void input_stop(void); | |
46 void input_pause(void); | |
47 gint input_get_time(void); | |
48 void input_set_eq(gint on, gfloat preamp, gfloat * bands); | |
49 void input_seek(gint time); | |
50 void input_get_song_info(const gchar * filename, gchar ** title, | |
51 gint * length); | |
52 guchar *input_get_vis(gint time); | |
53 void input_update_vis_plugin(gint time); | |
54 gchar *input_get_info_text(void); | |
55 void input_about(gint index); | |
56 void input_configure(gint index); | |
57 void input_add_vis(gint time, guchar * s, InputVisType type); | |
58 void input_add_vis_pcm(gint time, AFormat fmt, gint nch, gint length, | |
59 gpointer ptr); | |
60 InputVisType input_get_vis_type(); | |
61 void input_update_vis(gint time); | |
62 | |
63 void input_set_info_text(const gchar * text); | |
64 | |
65 GList *input_scan_dir(const gchar * dir); | |
66 void input_get_volume(gint * l, gint * r); | |
67 void input_set_volume(gint l, gint r); | |
68 void input_file_info_box(const gchar * filename); | |
69 | |
70 void input_file_not_playable(const gchar * filename); | |
71 gboolean input_is_disabled(const gchar * filename); | |
72 gboolean input_is_enabled(const gchar * filename); | |
73 gchar *input_stringify_disabled_list(void); | |
74 | |
75 extern InputPluginData ip_data; | |
76 extern gchar *input_info_text; | |
77 | |
78 | |
79 #endif |