Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9aed67ce
Commit
9aed67ce
authored
May 08, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if equalizer and equalizer-2pass are enabled upon panel creation
parent
7ded3d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
modules/gui/wxwindows/extrapanel.cpp
modules/gui/wxwindows/extrapanel.cpp
+30
-9
No files found.
modules/gui/wxwindows/extrapanel.cpp
View file @
9aed67ce
...
...
@@ -544,17 +544,38 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
CheckAout
();
eq_2p_chkbox
->
Disable
();
eq_restoredefaults_button
->
Disable
();
smooth_slider
->
Disable
();
smooth_text
->
Disable
();
preamp_slider
->
Disable
();
preamp_text
->
Disable
();
for
(
int
i_index
=
0
;
i_index
<
10
;
i_index
++
)
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
char
*
psz_af
;
if
(
p_aout
)
{
psz_af
=
var_GetString
(
p_aout
,
"audio-filter"
);
if
(
var_GetBool
(
p_aout
,
"equalizer-2pass"
)
)
eq_2p_chkbox
->
SetValue
(
true
);
}
else
{
psz_af
=
config_GetPsz
(
p_intf
,
"audio-filter"
);
if
(
config_GetInt
(
p_intf
,
"equalizer-2pass"
)
)
eq_2p_chkbox
->
SetValue
(
true
);
}
if
(
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
{
band_sliders
[
i_index
]
->
Disable
();
band_texts
[
i_index
]
->
Disable
();
eq_chkbox
->
SetValue
(
true
);
}
else
{
eq_2p_chkbox
->
Disable
();
eq_restoredefaults_button
->
Disable
();
smooth_slider
->
Disable
();
smooth_text
->
Disable
();
preamp_slider
->
Disable
();
preamp_text
->
Disable
();
for
(
int
i_index
=
0
;
i_index
<
10
;
i_index
++
)
{
band_sliders
[
i_index
]
->
Disable
();
band_texts
[
i_index
]
->
Disable
();
}
}
free
(
psz_af
);
return
panel
;
}
...
...
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