Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ef7d8891
Commit
ef7d8891
authored
Apr 10, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: deactivate spatializer controls if spatializer is disabled
parent
13bedc70
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
643 additions
and
597 deletions
+643
-597
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
...s/package/macosx/Resources/English.lproj/AudioEffects.xib
+635
-594
modules/gui/macosx/AudioEffects.h
modules/gui/macosx/AudioEffects.h
+1
-0
modules/gui/macosx/AudioEffects.m
modules/gui/macosx/AudioEffects.m
+7
-3
No files found.
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
View file @
ef7d8891
This diff is collapsed.
Click to expand it.
modules/gui/macosx/AudioEffects.h
View file @
ef7d8891
...
...
@@ -77,6 +77,7 @@
IBOutlet
id
o_comp_band7_lbl
;
/* Spatializer */
IBOutlet
id
o_spat_view
;
IBOutlet
id
o_spat_enable_ckb
;
IBOutlet
id
o_spat_reset_btn
;
IBOutlet
id
o_spat_band1_sld
;
...
...
modules/gui/macosx/AudioEffects.m
View file @
ef7d8891
...
...
@@ -905,14 +905,17 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
#pragma mark Spatializer
-
(
void
)
resetSpatializer
{
BOOL
b_enable_spat
=
NO
;
char
*
psz_afilters
;
psz_afilters
=
config_GetPsz
(
p_intf
,
"audio-filter"
);
if
(
psz_afilters
)
{
[
o_spat_enable_ckb
setState
:
(
NSInteger
)
strstr
(
psz_afilters
,
"spatializer"
)
]
;
b_enable_spat
=
strstr
(
psz_afilters
,
"spatializer"
)
!=
NULL
;
free
(
psz_afilters
);
}
else
[
o_spat_enable_ckb
setState
:
NSOffState
];
[
o_spat_view
enableSubviews
:
b_enable_spat
];
[
o_spat_enable_ckb
setState
:(
b_enable_spat
?
NSOnState
:
NSOffState
)];
#define setSlider(bandsld, bandfld, var) \
[bandsld setFloatValue: config_GetFloat(p_intf, var) * 10.]; \
...
...
@@ -949,6 +952,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
-
(
IBAction
)
spat_enable
:(
id
)
sender
{
[
o_spat_view
enableSubviews
:[
sender
state
]];
[
self
setAudioFilter
:
"spatializer"
on
:[
sender
state
]];
}
...
...
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