Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6927b44a
Commit
6927b44a
authored
Dec 08, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compressor: use float_ranges
parent
fdd60326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
modules/audio_filter/compressor.c
modules/audio_filter/compressor.c
+20
-22
No files found.
modules/audio_filter/compressor.c
View file @
6927b44a
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment