Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
audconfig.h
Go to the documentation of this file.
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 show_numbers_in_pl, leading_zero;
00041     gboolean no_playlist_advance, advance_on_delete, clear_playlist,
00042      open_to_temporary;
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 resume_state;
00054     gint resume_playback_on_startup_time;
00055     gchar *chardet_detector;
00056     gchar *chardet_fallback;
00057     gchar **chardet_fallback_s;
00058     gint output_buffer_size;
00059     gboolean show_filepopup_for_tuple;
00060     gchar *cover_name_include, *cover_name_exclude;
00061     gboolean recurse_for_cover;
00062     gint recurse_for_cover_depth;
00063     gint filepopup_pixelsize;
00064     gint filepopup_delay;
00065     gboolean use_file_cover;
00066     gboolean filepopup_showprogressbar;
00067     gboolean close_jtf_dialog;
00068     gboolean software_volume_control;
00069     gboolean remember_jtf_entry;
00070     gint output_bit_depth;
00071     gboolean enable_replay_gain;
00072     gboolean enable_clipping_prevention;
00073     gboolean replay_gain_track;
00074     gboolean replay_gain_album;
00075     gfloat replay_gain_preamp;
00076     gfloat default_gain;
00077     gint sw_volume_left, sw_volume_right;
00078 
00079     /* libaudgui stuff */
00080     gboolean no_confirm_playlist_delete;
00081     gint playlist_manager_x, playlist_manager_y, playlist_manager_width,
00082      playlist_manager_height;
00083     gboolean playlist_manager_close_on_activate;
00084 
00085     /* not saved */
00086     gboolean verbose;
00087 
00088     /* proxy stuff */
00089     gboolean use_proxy;
00090     gchar * proxy_host, * proxy_port;
00091     gboolean use_proxy_auth;
00092     gchar * proxy_user, * proxy_pass;
00093 };
00094 
00095 typedef struct _AudConfig AudConfig;
00096 
00097 extern AudConfig cfg;
00098 extern AudConfig aud_default_config;
00099 
00100 void aud_config_load(void);
00101 void aud_config_save(void);
00102 
00103 void aud_config_chardet_update(void);
00104 
00105 #endif /* AUDACIOUS_AUDCONFIG_H */