vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Dec 8 11:04:20 2015 +0100| [6927b44a15887b4d2c6aecda9f288cdcaf76abf6] | committer: Jean-Baptiste Kempf
Compressor: use float_ranges > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6927b44a15887b4d2c6aecda9f288cdcaf76abf6 --- modules/audio_filter/compressor.c | 42 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/modules/audio_filter/compressor.c b/modules/audio_filter/compressor.c index 1936fba..61c6854 100644 --- a/modules/audio_filter/compressor.c +++ b/modules/audio_filter/compressor.c @@ -153,24 +153,22 @@ static int MakeupGainCallback ( vlc_object_t *, char const *, vlc_value_t, *****************************************************************************/ #define RMS_PEAK_TEXT N_( "RMS/peak" ) -#define RMS_PEAK_LONGTEXT N_( "Set the RMS/peak (0 ... 1)." ) +#define RMS_PEAK_LONGTEXT N_( "Set the RMS/peak." ) #define ATTACK_TEXT N_( "Attack time" ) -#define ATTACK_LONGTEXT N_( \ - "Set the attack time in milliseconds (1.5 ... 400)." ) +#define ATTACK_LONGTEXT N_( "Set the attack time in milliseconds." ) #define RELEASE_TEXT N_( "Release time" ) -#define RELEASE_LONGTEXT N_( \ - "Set the release time in milliseconds (2 ... 800)." ) +#define RELEASE_LONGTEXT N_( "Set the release time in milliseconds." ) #define THRESHOLD_TEXT N_( "Threshold level" ) -#define THRESHOLD_LONGTEXT N_( "Set the threshold level in dB (-30 ... 0)." ) +#define THRESHOLD_LONGTEXT N_( "Set the threshold level in dB." ) #define RATIO_TEXT N_( "Ratio" ) -#define RATIO_LONGTEXT N_( "Set the ratio (n:1) (1 ... 20)." ) +#define RATIO_LONGTEXT N_( "Set the ratio (n:1)." ) #define KNEE_TEXT N_( "Knee radius" ) -#define KNEE_LONGTEXT N_( "Set the knee radius in dB (1 ... 10)." ) +#define KNEE_LONGTEXT N_( "Set the knee radius in dB." ) #define MAKEUP_GAIN_TEXT N_( "Makeup gain" ) #define MAKEUP_GAIN_LONGTEXT N_( "Set the makeup gain in dB (0 ... 24)." ) @@ -182,20 +180,20 @@ vlc_module_begin() set_category( CAT_AUDIO ) set_subcategory( SUBCAT_AUDIO_AFILTER ) - add_float( "compressor-rms-peak", 0.2, RMS_PEAK_TEXT, - RMS_PEAK_LONGTEXT, false ) - add_float( "compressor-attack", 25.0, ATTACK_TEXT, - ATTACK_LONGTEXT, false ) - add_float( "compressor-release", 100.0, RELEASE_TEXT, - RELEASE_LONGTEXT, false ) - add_float( "compressor-threshold", -11.0, THRESHOLD_TEXT, - THRESHOLD_LONGTEXT, false ) - add_float( "compressor-ratio", 4.0, RATIO_TEXT, - RATIO_LONGTEXT, false ) - add_float( "compressor-knee", 5.0, KNEE_TEXT, - KNEE_LONGTEXT, false ) - add_float( "compressor-makeup-gain", 7.0, MAKEUP_GAIN_TEXT, - MAKEUP_GAIN_LONGTEXT, false ) + add_float_with_range( "compressor-rms-peak", 0.2, 0.0, 1.0, + RMS_PEAK_TEXT, RMS_PEAK_LONGTEXT, false ) + add_float_with_range( "compressor-attack", 25.0, 1.5, 400.0, + ATTACK_TEXT, ATTACK_LONGTEXT, false ) + add_float_with_range( "compressor-release", 100.0, 2.0, 800.0, + RELEASE_TEXT, RELEASE_LONGTEXT, false ) + add_float_with_range( "compressor-threshold", -11.0, -30.0, 0.0, + THRESHOLD_TEXT, THRESHOLD_LONGTEXT, false ) + add_float_with_range( "compressor-ratio", 4.0, 1.0, 20.0, + RATIO_TEXT, RATIO_LONGTEXT, false ) + add_float_with_range( "compressor-knee", 5.0, 1.0, 10.0, + KNEE_TEXT, KNEE_LONGTEXT, false ) + add_float_with_range( "compressor-makeup-gain", 7.0, 0.0, 24.0, + MAKEUP_GAIN_TEXT, MAKEUP_GAIN_LONGTEXT, false ) set_callbacks( Open, Close ) add_shortcut( "compressor" ) vlc_module_end () _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
