Commit 6927b44a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Compressor: use float_ranges

parent fdd60326
......@@ -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 ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment