Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
00001 /* Audacious - Cross-platform multimedia player 00002 * Copyright (C) 2005-2010 Audacious development team 00003 * 00004 * Based on BMP: 00005 * Copyright (C) 2003-2004 BMP development team 00006 * 00007 * Based on XMMS: 00008 * Copyright (C) 1998-2003 XMMS development team 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; under version 3 of the License. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program. If not, see <http://www.gnu.org/licenses>. 00021 * 00022 * The Audacious team does not consider modular code linking to 00023 * Audacious or using our public API to be a derived work. 00024 */ 00025 00026 #ifndef AUDACIOUS_AUDCONFIG_H 00027 #define AUDACIOUS_AUDCONFIG_H 00028 00029 #include <glib.h> 00030 #include <audacious/types.h> 00031 00032 #ifndef _AUDACIOUS_CORE 00033 #include <audacious/api.h> 00034 #define aud_cfg (_aud_api_table->cfg) 00035 #endif 00036 00037 struct _AudConfig { 00038 gboolean shuffle, repeat; 00039 gboolean equalizer_autoload, equalizer_active; 00040 gboolean playlist_visible, equalizer_visible, player_visible; 00041 gboolean show_numbers_in_pl, leading_zero; 00042 gboolean no_playlist_advance, advance_on_delete, clear_playlist, 00043 open_to_temporary; 00044 gboolean stopaftersong; 00045 gboolean close_dialog_open; 00046 gfloat equalizer_preamp, equalizer_bands[AUD_EQUALIZER_NBANDS]; 00047 gchar *filesel_path; 00048 gchar *playlist_path; 00049 gchar *eqpreset_default_file, *eqpreset_extension; 00050 GList *url_history; 00051 gint titlestring_preset; 00052 gchar *gentitle_format; 00053 gboolean resume_playback_on_startup; 00054 gint resume_state; 00055 gint resume_playback_on_startup_time; 00056 gchar *chardet_detector; 00057 gchar *chardet_fallback; 00058 gchar **chardet_fallback_s; 00059 gint output_buffer_size; 00060 gboolean show_filepopup_for_tuple; 00061 gchar *cover_name_include, *cover_name_exclude; 00062 gboolean recurse_for_cover; 00063 gint recurse_for_cover_depth; 00064 gint filepopup_pixelsize; 00065 gint filepopup_delay; 00066 gboolean use_file_cover; 00067 gboolean filepopup_showprogressbar; 00068 gboolean close_jtf_dialog; 00069 gboolean software_volume_control; 00070 gboolean remember_jtf_entry; 00071 gint output_bit_depth; 00072 gboolean enable_replay_gain; 00073 gboolean enable_clipping_prevention; 00074 gboolean replay_gain_track; 00075 gboolean replay_gain_album; 00076 gfloat replay_gain_preamp; 00077 gfloat default_gain; 00078 gint sw_volume_left, sw_volume_right; 00079 00080 /* libaudgui stuff */ 00081 gboolean no_confirm_playlist_delete; 00082 gint playlist_manager_x, playlist_manager_y, playlist_manager_width, 00083 playlist_manager_height; 00084 gboolean playlist_manager_close_on_activate; 00085 00086 /* not saved */ 00087 gboolean verbose; 00088 }; 00089 00090 typedef struct _AudConfig AudConfig; 00091 00092 extern AudConfig cfg; 00093 extern AudConfig aud_default_config; 00094 00095 void aud_config_load(void); 00096 void aud_config_save(void); 00097 00098 void aud_config_chardet_update(void); 00099 00100 #endif /* AUDACIOUS_AUDCONFIG_H */