Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8e7f4470
Commit
8e7f4470
authored
Aug 25, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a callback on equalizer-2pass in equalizer filter.
It will allow to avoid reseting the whole aout for it.
parent
74d08390
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
modules/audio_filter/equalizer.c
modules/audio_filter/equalizer.c
+14
-0
No files found.
modules/audio_filter/equalizer.c
View file @
8e7f4470
...
...
@@ -135,6 +135,8 @@ static int PreampCallback( vlc_object_t *, char const *,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
BandsCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
TwoPassCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -405,6 +407,7 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
var_AddCallback
(
p_aout
,
"equalizer-preset"
,
PresetCallback
,
p_sys
);
var_AddCallback
(
p_aout
,
"equalizer-bands"
,
BandsCallback
,
p_sys
);
var_AddCallback
(
p_aout
,
"equalizer-preamp"
,
PreampCallback
,
p_sys
);
var_AddCallback
(
p_aout
,
"equalizer-2pass"
,
TwoPassCallback
,
p_sys
);
msg_Dbg
(
p_filter
,
"equalizer loaded for %d Hz with %d bands %d pass"
,
i_rate
,
p_sys
->
i_band
,
p_sys
->
b_2eqz
?
2
:
1
);
...
...
@@ -488,6 +491,8 @@ static void EqzClean( aout_filter_t *p_filter )
"equalizer-preset"
,
PresetCallback
,
p_sys
);
var_DelCallback
(
(
aout_instance_t
*
)
p_filter
->
p_parent
,
"equalizer-preamp"
,
PreampCallback
,
p_sys
);
var_DelCallback
(
(
aout_instance_t
*
)
p_filter
->
p_parent
,
"equalizer-2pass"
,
TwoPassCallback
,
p_sys
);
free
(
p_sys
->
f_alpha
);
free
(
p_sys
->
f_beta
);
...
...
@@ -603,4 +608,13 @@ static int BandsCallback( vlc_object_t *p_this, char const *psz_cmd,
}
return
VLC_SUCCESS
;
}
static
int
TwoPassCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
aout_filter_sys_t
*
p_sys
=
(
aout_filter_sys_t
*
)
p_data
;
/* FIXME lock (same for all other callbacks) */
p_sys
->
b_2eqz
=
newval
.
b_bool
;
}
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