diff src/madplug/plugin.h @ 2341:59addab003d7

- reworked replaygain to use individual pre-gain for the files with RG info and the rest. - default pre-gain have been changed to +6dB for with RG, +0dB for the rest. - new clipping prevention feature using track peak information has been implemented. - reworked preferences dialog. widgets have been categorized by function and all changes will take effect immediately. and also, cancel button can reverts all changes have been done in the current session. - some keys in preferences have been changed.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 31 Jan 2008 15:22:15 +0900
parents 1457b35713d9
children fd8271f07747
line wrap: on
line diff
--- a/src/madplug/plugin.h	Wed Jan 30 05:04:15 2008 +0300
+++ b/src/madplug/plugin.h	Thu Jan 31 15:22:15 2008 +0900
@@ -103,32 +103,36 @@
 
 };
 
-struct audmad_config_t
+typedef struct audmad_config_t
 {
-    gint http_buffer_size;
     gboolean fast_play_time_calc;
     gboolean use_xing;
     gboolean dither;
     gboolean sjis;
-    gboolean hard_limit;
-    gchar *pregain_db;          // gain applied to samples at decoding stage.
-    gdouble pregain_scale;      // pow(10, pregain/20)
+
     struct
     {
+        gchar *preamp0_db;          // gain applied to samples at decoding stage.
+        gdouble preamp0_scale;      // pow(10, pregain/20)
         gboolean enable;
         gboolean track_mode;
-        gchar *default_db;      // gain used if no RG.
-        gdouble default_scale;
+        gchar *preamp1_db;      // preamp used with RG info.
+        gdouble preamp1_scale;
+        gchar *preamp2_db;      // preamp used without RG info.
+        gdouble preamp2_scale;
+        gboolean hard_limit;
+        gboolean anti_clip;
     } replaygain;
+
     gboolean title_override;
     gchar *id3_format;
     gboolean show_avg_vbr_bitrate;
     gboolean force_reopen_audio;
-};
+} audmad_config_t;
 
 // global variables
 extern InputPlugin *mad_plugin;
-extern struct audmad_config_t audmad_config;
+extern audmad_config_t *audmad_config;
 
 // gcond
 extern GMutex *mad_mutex;