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; 00042 gboolean no_playlist_advance; 00043 gboolean stopaftersong; 00044 gboolean close_dialog_open; 00045 gfloat equalizer_preamp, equalizer_bands[AUD_EQUALIZER_NBANDS]; 00046 gchar *filesel_path; 00047 gchar *playlist_path; 00048 gchar *eqpreset_default_file, *eqpreset_extension; 00049 GList *url_history; 00050 gint titlestring_preset; 00051 gchar *gentitle_format; 00052 gboolean resume_playback_on_startup; 00053 gint unused, unused2; /* for compatibility with v2.3 binary API */ 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 gboolean clear_playlist; 00080 gchar * output_path; 00081 gint output_number; 00082 gchar * iface_path; 00083 gint iface_number; 00084 00085 /* libaudgui stuff */ 00086 gboolean no_confirm_playlist_delete; 00087 gint playlist_manager_x, playlist_manager_y, playlist_manager_width, 00088 playlist_manager_height; 00089 gboolean playlist_manager_close_on_activate; 00090 00091 /* not saved */ 00092 gboolean verbose; 00093 }; 00094 00095 typedef struct _AudConfig AudConfig; 00096 00097 extern AudConfig cfg; 00098 extern AudConfig aud_default_config; 00099 00100 void aud_config_free(void); 00101 void aud_config_load(void); 00102 void aud_config_save(void); 00103 00104 void aud_config_chardet_update(void); 00105 00106 #endif /* AUDACIOUS_AUDCONFIG_H */