Mercurial > audlegacy-plugins
comparison 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 |
comparison
equal
deleted
inserted
replaced
2340:47d7a45b26a0 | 2341:59addab003d7 |
---|---|
101 gboolean remote; | 101 gboolean remote; |
102 gboolean fileinfo_request; | 102 gboolean fileinfo_request; |
103 | 103 |
104 }; | 104 }; |
105 | 105 |
106 struct audmad_config_t | 106 typedef struct audmad_config_t |
107 { | 107 { |
108 gint http_buffer_size; | |
109 gboolean fast_play_time_calc; | 108 gboolean fast_play_time_calc; |
110 gboolean use_xing; | 109 gboolean use_xing; |
111 gboolean dither; | 110 gboolean dither; |
112 gboolean sjis; | 111 gboolean sjis; |
113 gboolean hard_limit; | 112 |
114 gchar *pregain_db; // gain applied to samples at decoding stage. | |
115 gdouble pregain_scale; // pow(10, pregain/20) | |
116 struct | 113 struct |
117 { | 114 { |
115 gchar *preamp0_db; // gain applied to samples at decoding stage. | |
116 gdouble preamp0_scale; // pow(10, pregain/20) | |
118 gboolean enable; | 117 gboolean enable; |
119 gboolean track_mode; | 118 gboolean track_mode; |
120 gchar *default_db; // gain used if no RG. | 119 gchar *preamp1_db; // preamp used with RG info. |
121 gdouble default_scale; | 120 gdouble preamp1_scale; |
121 gchar *preamp2_db; // preamp used without RG info. | |
122 gdouble preamp2_scale; | |
123 gboolean hard_limit; | |
124 gboolean anti_clip; | |
122 } replaygain; | 125 } replaygain; |
126 | |
123 gboolean title_override; | 127 gboolean title_override; |
124 gchar *id3_format; | 128 gchar *id3_format; |
125 gboolean show_avg_vbr_bitrate; | 129 gboolean show_avg_vbr_bitrate; |
126 gboolean force_reopen_audio; | 130 gboolean force_reopen_audio; |
127 }; | 131 } audmad_config_t; |
128 | 132 |
129 // global variables | 133 // global variables |
130 extern InputPlugin *mad_plugin; | 134 extern InputPlugin *mad_plugin; |
131 extern struct audmad_config_t audmad_config; | 135 extern audmad_config_t *audmad_config; |
132 | 136 |
133 // gcond | 137 // gcond |
134 extern GMutex *mad_mutex; | 138 extern GMutex *mad_mutex; |
135 extern GMutex *pb_mutex; | 139 extern GMutex *pb_mutex; |
136 extern GCond *mad_cond; | 140 extern GCond *mad_cond; |