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
6b7628d8
Commit
6b7628d8
authored
Apr 01, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: updated gui for new spatializer values (close #6516)
parent
4a75f8a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
modules/gui/macosx/AudioEffects.m
modules/gui/macosx/AudioEffects.m
+23
-22
No files found.
modules/gui/macosx/AudioEffects.m
View file @
6b7628d8
...
...
@@ -528,33 +528,34 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
else
[
o_spat_enable_ckb
setState
:
NSOffState
];
[
o_spat_band1_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"spatializer-roomsize"
)];
[
o_spat_band1_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
o_spat_band1_sld
floatValue
]]];
[
o_spat_band2_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"spatializer-width"
)];
[
o_spat_band2_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
o_spat_band2_sld
floatValue
]]];
[
o_spat_band3_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"spatializer-wet"
)];
[
o_spat_band3_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
o_spat_band3_sld
floatValue
]]];
[
o_spat_band4_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"spatializer-dry"
)];
[
o_spat_band4_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
o_spat_band4_sld
floatValue
]]];
[
o_spat_band5_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"spatializer-damp"
)];
[
o_spat_band5_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
o_spat_band5_sld
floatValue
]]];
#define setSlider( bandsld, bandfld, var ) \
[bandsld setFloatValue: config_GetFloat( p_intf, var ) * 10.]; \
[bandfld setStringValue:[NSString localizedStringWithFormat:@"%1.1f", [bandsld floatValue]]]
setSlider
(
o_spat_band1_sld
,
o_spat_band1_fld
,
"spatializer-roomsize"
);
setSlider
(
o_spat_band2_sld
,
o_spat_band2_fld
,
"spatializer-width"
);
setSlider
(
o_spat_band3_sld
,
o_spat_band3_fld
,
"spatializer-wet"
);
setSlider
(
o_spat_band4_sld
,
o_spat_band4_fld
,
"spatializer-dry"
);
setSlider
(
o_spat_band5_sld
,
o_spat_band5_fld
,
"spatializer-damp"
);
#undef setSlider
}
-
(
IBAction
)
resetSpatializerValues
:(
id
)
sender
{
config_PutFloat
(
p_intf
,
"spatializer-roomsize"
,
1
.
050000
);
config_PutFloat
(
p_intf
,
"spatializer-width"
,
1
0
.
000000
);
config_PutFloat
(
p_intf
,
"spatializer-wet"
,
3
.
000000
);
config_PutFloat
(
p_intf
,
"spatializer-dry"
,
2
.
000000
);
config_PutFloat
(
p_intf
,
"spatializer-damp"
,
1
.
000000
);
config_PutFloat
(
p_intf
,
"spatializer-roomsize"
,
.
85
);
config_PutFloat
(
p_intf
,
"spatializer-width"
,
1
.
);
config_PutFloat
(
p_intf
,
"spatializer-wet"
,
.
4
);
config_PutFloat
(
p_intf
,
"spatializer-dry"
,
.
5
);
config_PutFloat
(
p_intf
,
"spatializer-damp"
,
.
5
);
audio_output_t
*
p_aout
=
getAout
();
if
(
p_aout
)
{
var_SetFloat
(
p_aout
,
"spatializer-roomsize"
,
1
.
050000
);
var_SetFloat
(
p_aout
,
"spatializer-width"
,
1
0
.
000000
);
var_SetFloat
(
p_aout
,
"spatializer-wet"
,
3
.
000000
);
var_SetFloat
(
p_aout
,
"spatializer-dry"
,
2
.
000000
);
var_SetFloat
(
p_aout
,
"spatializer-damp"
,
1
.
000000
);
var_SetFloat
(
p_aout
,
"spatializer-roomsize"
,
.
85
);
var_SetFloat
(
p_aout
,
"spatializer-width"
,
1
.
);
var_SetFloat
(
p_aout
,
"spatializer-wet"
,
.
4
);
var_SetFloat
(
p_aout
,
"spatializer-dry"
,
.
5
);
var_SetFloat
(
p_aout
,
"spatializer-damp"
,
.
5
);
vlc_object_release
(
p_aout
);
}
[
self
resetSpatializer
];
...
...
@@ -581,10 +582,10 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
value
=
"spatializer-damp"
;
if
(
p_aout
)
{
var_SetFloat
(
p_aout
,
value
,
[
sender
floatValue
]
);
var_SetFloat
(
p_aout
,
value
,
[
sender
floatValue
]
/
10
.
);
vlc_object_release
(
p_aout
);
}
config_PutFloat
(
p_intf
,
value
,
[
sender
floatValue
]
);
config_PutFloat
(
p_intf
,
value
,
[
sender
floatValue
]
/
10
.
);
if
(
sender
==
o_spat_band1_sld
)
[
o_spat_band1_fld
setStringValue
:[
NSString
localizedStringWithFormat
:
@"%1.1f"
,
[
sender
floatValue
]]];
...
...
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