00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
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
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