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;
|
|
34 };
|
|
35
|
|
36 GList *get_input_list(void);
|
|
37 InputPlugin *get_current_input_plugin(void);
|
|
38 void set_current_input_plugin(InputPlugin * ip);
|
|
39 InputVisType input_get_vis_type();
|
|
40 void free_vis_data(void);
|
|
41 gboolean input_check_file(const gchar * filename, gboolean show_warning);
|
|
42 void input_play(gchar * filename);
|
|
43 void input_stop(void);
|
|
44 void input_pause(void);
|
|
45 gint input_get_time(void);
|
|
46 void input_set_eq(gint on, gfloat preamp, gfloat * bands);
|
|
47 void input_seek(gint time);
|
|
48 void input_get_song_info(const gchar * filename, gchar ** title,
|
|
49 gint * length);
|
|
50 guchar *input_get_vis(gint time);
|
|
51 void input_update_vis_plugin(gint time);
|
|
52 gchar *input_get_info_text(void);
|
|
53 void input_about(gint index);
|
|
54 void input_configure(gint index);
|
|
55 void input_add_vis(gint time, guchar * s, InputVisType type);
|
|
56 void input_add_vis_pcm(gint time, AFormat fmt, gint nch, gint length,
|
|
57 gpointer ptr);
|
|
58 InputVisType input_get_vis_type();
|
|
59 void input_update_vis(gint time);
|
|
60
|
|
61 void input_set_info_text(const gchar * text);
|
|
62
|
|
63 GList *input_scan_dir(const gchar * dir);
|
|
64 void input_get_volume(gint * l, gint * r);
|
|
65 void input_set_volume(gint l, gint r);
|
|
66 void input_file_info_box(const gchar * filename);
|
|
67
|
|
68 void input_file_not_playable(const gchar * filename);
|
|
69 gboolean input_is_disabled(const gchar * filename);
|
|
70 gboolean input_is_enabled(const gchar * filename);
|
|
71 gchar *input_stringify_disabled_list(void);
|
|
72
|
|
73 extern InputPluginData ip_data;
|
|
74 extern gchar *input_info_text;
|
|
75
|
|
76
|
|
77 #endif
|