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
9d676f05
Commit
9d676f05
authored
Apr 10, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: disable equalizer controls if eq is disabled
refs #9350
parent
aa7f483a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1737 additions
and
1607 deletions
+1737
-1607
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
...s/package/macosx/Resources/English.lproj/AudioEffects.xib
+1730
-1603
modules/gui/macosx/AudioEffects.h
modules/gui/macosx/AudioEffects.h
+1
-0
modules/gui/macosx/AudioEffects.m
modules/gui/macosx/AudioEffects.m
+6
-4
No files found.
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
View file @
9d676f05
This source diff could not be displayed because it is too large. You can
view the blob
instead.
modules/gui/macosx/AudioEffects.h
View file @
9d676f05
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
BOOL
b_genericAudioProfileInInteraction
;
BOOL
b_genericAudioProfileInInteraction
;
/* Equalizer */
/* Equalizer */
IBOutlet
id
o_eq_view
;
IBOutlet
id
o_eq_enable_ckb
;
IBOutlet
id
o_eq_enable_ckb
;
IBOutlet
id
o_eq_twopass_ckb
;
IBOutlet
id
o_eq_twopass_ckb
;
IBOutlet
id
o_eq_preamp_lbl
;
IBOutlet
id
o_eq_preamp_lbl
;
...
...
modules/gui/macosx/AudioEffects.m
View file @
9d676f05
...
@@ -362,10 +362,10 @@ static VLCAudioEffects *_o_sharedInstance = nil;
...
@@ -362,10 +362,10 @@ static VLCAudioEffects *_o_sharedInstance = nil;
}
}
/* update UI */
/* update UI */
if
([
tempString
rangeOfString
:
@"equalizer"
].
location
==
NSNotFound
)
BOOL
b_eq_enabled
=
[
tempString
rangeOfString
:
@"equalizer"
].
location
!=
NSNotFound
;
[
o_eq_enable_ckb
setState
:
NSOffState
];
[
o_eq_view
enableSubviews
:
b_eq_enabled
];
else
[
o_eq_enable_ckb
setState
:(
b_eq_enabled
?
NSOnState
:
NSOffState
)];
[
o_eq_enable_ckb
setState
:
NSOnState
];
[
o_eq_twopass_ckb
setState
:[[
items
objectAtIndex
:
15
]
intValue
]];
[
o_eq_twopass_ckb
setState
:[[
items
objectAtIndex
:
15
]
intValue
]];
[
self
resetCompressor
];
[
self
resetCompressor
];
[
self
resetSpatializer
];
[
self
resetSpatializer
];
...
@@ -508,6 +508,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
...
@@ -508,6 +508,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
[
self
updatePresetSelector
];
[
self
updatePresetSelector
];
/* Set the the checkboxes */
/* Set the the checkboxes */
[
o_eq_view
enableSubviews
:
b_enabled
];
[
o_eq_enable_ckb
setState
:
b_enabled
];
[
o_eq_enable_ckb
setState
:
b_enabled
];
[
o_eq_twopass_ckb
setState
:
b_2p
];
[
o_eq_twopass_ckb
setState
:
b_2p
];
}
}
...
@@ -563,6 +564,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
...
@@ -563,6 +564,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
-
(
IBAction
)
eq_enable
:(
id
)
sender
-
(
IBAction
)
eq_enable
:(
id
)
sender
{
{
[
o_eq_view
enableSubviews
:[
sender
state
]];
[
self
setAudioFilter
:
"equalizer"
on
:[
sender
state
]];
[
self
setAudioFilter
:
"equalizer"
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