Mercurial > audlegacy
annotate audacious/main.h @ 1711:c7c1e346bb55 trunk
[svn] - no more busy loop if a file in playlist disappears.
author | yaz |
---|---|
date | Fri, 15 Sep 2006 21:36:31 -0700 |
parents | 43ae2a1bfdee |
children | c7ab1203d933 |
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 | |
1459 | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 20 */ |
21 | |
22 #ifndef MAIN_H | |
23 #define MAIN_H | |
24 | |
1653 | 25 #include "widgets/widgetcore.h" |
26 #include "mainwin.h" | |
0 | 27 |
887 | 28 #include <sys/types.h> |
29 #include <sys/stat.h> | |
0 | 30 |
31 #define BMP_USER_PLUGIN_DIR_BASENAME "Plugins" | |
32 #define BMP_SKIN_DIR_BASENAME "Skins" | |
33 #define BMP_SKIN_THUMB_DIR_BASENAME ".thumbs" | |
34 #define BMP_ACCEL_BASENAME "accels" | |
35 #define BMP_CONFIG_BASENAME "config" | |
1569
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
36 #ifndef HAVE_XSPF_PLAYLIST |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
37 # define BMP_PLAYLIST_BASENAME "playlist.m3u" |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
38 #else |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
39 # define BMP_PLAYLIST_BASENAME "playlist.xspf" |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
40 #endif |
0 | 41 #define BMP_LOG_BASENAME "log" |
42 | |
43 #define PLAYER_HEIGHT \ | |
44 (cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) | |
45 #define PLAYER_WIDTH MAINWIN_WIDTH | |
46 | |
47 struct _BmpConfig { | |
48 gint player_x, player_y; | |
49 gint equalizer_x, equalizer_y; | |
50 gint playlist_x, playlist_y; | |
51 gint playlist_width, playlist_height; | |
52 gint snap_distance; | |
53 gboolean use_realtime; | |
54 gboolean shuffle, repeat; | |
55 gboolean doublesize, autoscroll; | |
56 gboolean analyzer_peaks, equalizer_autoload, easy_move, equalizer_active; | |
57 gboolean playlist_visible, equalizer_visible, player_visible; | |
58 gboolean player_shaded, playlist_shaded, equalizer_shaded; | |
59 gboolean allow_multiple_instances, always_show_cb; | |
60 gboolean convert_underscore, convert_twenty; | |
61 gboolean show_numbers_in_pl; | |
62 gboolean snap_windows, save_window_position; | |
63 gboolean dim_titlebar; | |
64 gboolean get_info_on_load, get_info_on_demand; | |
65 gboolean eq_doublesize_linked; | |
66 gboolean sort_jump_to_file; | |
67 gboolean use_eplugins; | |
68 gboolean always_on_top, sticky; | |
69 gboolean no_playlist_advance; | |
899 | 70 gboolean stopaftersong; |
893
6afdd0d7e1e1
[svn] Make refreshing optional, default to disabled if Gnome VFS available.
nemo
parents:
887
diff
changeset
|
71 gboolean refresh_file_list; |
0 | 72 gboolean smooth_title_scroll; |
73 gboolean use_pl_metadata; | |
74 gboolean warn_about_unplayables; | |
75 gboolean use_backslash_as_dir_delimiter; | |
76 gboolean random_skin_on_play; | |
77 gboolean use_fontsets; | |
78 gboolean mainwin_use_xfont; | |
79 gboolean custom_cursors; | |
80 gboolean close_dialog_open; | |
81 gboolean close_dialog_add; | |
82 gfloat equalizer_preamp, equalizer_bands[10]; | |
83 gchar *skin; | |
84 gchar *outputplugin; | |
85 gchar *filesel_path; | |
86 gchar *playlist_path; | |
87 gchar *playlist_font, *mainwin_font; | |
88 gchar *disabled_iplugins; | |
89 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
90 gchar *eqpreset_default_file, *eqpreset_extension; | |
91 GList *url_history; | |
92 gint timer_mode; | |
93 gint vis_type; | |
94 gint analyzer_mode, analyzer_type; | |
95 gint scope_mode; | |
96 gint vu_mode, vis_refresh; | |
97 gint analyzer_falloff, peaks_falloff; | |
98 gint playlist_position; | |
99 gint pause_between_songs_time; | |
100 gboolean pause_between_songs; | |
101 gboolean show_wm_decorations; | |
102 gint mouse_change; | |
103 gboolean playlist_transparent; | |
104 gint titlestring_preset; | |
105 gchar *gentitle_format; | |
106 gboolean softvolume_enable; | |
107 gboolean xmms_compat_mode; | |
108 gboolean eq_extra_filtering; | |
109 gint scroll_pl_by; | |
998
8c6949ffd7f8
[svn] Support for saving the playback state, and resuming playback after restart. Patch by cha0smaster, closes bug #479.
chainsaw
parents:
899
diff
changeset
|
110 gboolean resume_playback_on_startup; |
8c6949ffd7f8
[svn] Support for saving the playback state, and resuming playback after restart. Patch by cha0smaster, closes bug #479.
chainsaw
parents:
899
diff
changeset
|
111 gint resume_playback_on_startup_time; |
1056
21628529c615
[svn] add the config option to enable/disable separator line in the playlist
yaz
parents:
998
diff
changeset
|
112 gboolean show_separator_in_pl; |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
113 gchar *chardet_detector; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
114 gchar *chardet_fallback; |
1146
7e208feb36a2
[svn] - new global variable `output_buffer_size', replaces all of the per-plugin buffer sizes
nenolod
parents:
1105
diff
changeset
|
115 gint output_buffer_size; |
1163
ff71f891265b
[svn] - Allow to do format detection on demand; instead of immediately on add
nenolod
parents:
1146
diff
changeset
|
116 gboolean playlist_detect; |
1358 | 117 gboolean show_filepopup_for_tuple; |
1413 | 118 gchar *cover_name_include, *cover_name_exclude; |
1429
a360afd8df52
[svn] Make annoying recursion that consistently returns wrong art, optional.
nemo
parents:
1413
diff
changeset
|
119 gboolean recurse_for_cover; |
a360afd8df52
[svn] Make annoying recursion that consistently returns wrong art, optional.
nemo
parents:
1413
diff
changeset
|
120 gint recurse_for_cover_depth; |
1444
c04ce16b2b57
[svn] - libaudacious/beepctrl.c: optimise further and be more paranoid about leaks
nenolod
parents:
1429
diff
changeset
|
121 gchar *session_uri_base; |
1710 | 122 gint filepopup_pixelsize; |
123 gint filepopup_delay; | |
0 | 124 }; |
125 | |
126 typedef struct _BmpConfig BmpConfig; | |
127 | |
128 enum { | |
129 VOLSET_STARTUP, | |
130 VOLSET_UPDATE, | |
131 VOLUME_ADJUSTED, | |
132 VOLUME_SET | |
133 }; | |
134 | |
135 enum { | |
136 BMP_PATH_LOG_FILE, | |
137 BMP_PATH_USER_DIR, | |
138 BMP_PATH_USER_PLUGIN_DIR, | |
139 BMP_PATH_USER_SKIN_DIR, | |
140 BMP_PATH_SKIN_THUMB_DIR, | |
141 BMP_PATH_ACCEL_FILE, | |
142 BMP_PATH_CONFIG_FILE, | |
143 BMP_PATH_PLAYLIST_FILE, | |
144 BMP_PATH_COUNT | |
145 }; | |
146 | |
147 extern BmpConfig cfg; | |
148 extern BmpConfig bmp_default_config; | |
149 | |
150 extern gchar *bmp_paths[]; | |
151 | |
152 extern const gchar *bmp_titlestring_presets[]; | |
153 extern const guint n_titlestring_presets; | |
154 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
155 extern const gchar *chardet_detector_presets[]; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
156 extern const guint n_chardet_detector_presets; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
157 |
0 | 158 extern GList *dock_window_list; |
159 extern gboolean pposition_broken; | |
160 | |
486 | 161 extern gboolean starting_up; |
162 | |
680
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
163 extern gboolean has_x11_connection; |
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
164 |
0 | 165 void bmp_config_save(void); |
166 void bmp_config_load(void); | |
887 | 167 void make_directory(const gchar * path, mode_t mode); |
781
12c47704b4b5
[svn] Add error reporting for many places, patch by external contributor Derek
nenolod
parents:
680
diff
changeset
|
168 void report_error(const gchar *error_text); |
0 | 169 |
170 #endif |