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
433c1323
Commit
433c1323
authored
Jan 04, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: prefs: fix default audio volume slider
parent
ebce4183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+2
-2
No files found.
modules/gui/macosx/simple_prefs.m
View file @
433c1323
...
@@ -473,7 +473,7 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
...
@@ -473,7 +473,7 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
[
o_audio_vol_sld
setEnabled
:
YES
];
[
o_audio_vol_sld
setEnabled
:
YES
];
i
=
var_InheritInteger
(
p_intf
,
"auhal-volume"
);
i
=
var_InheritInteger
(
p_intf
,
"auhal-volume"
);
i
=
i
*
1
00
.
/
AOUT_VOLUME_MAX
;
i
=
i
*
2
00
.
/
AOUT_VOLUME_MAX
;
[
o_audio_vol_sld
setIntValue
:
i
];
[
o_audio_vol_sld
setIntValue
:
i
];
[
o_audio_vol_fld
setIntValue
:
i
];
[
o_audio_vol_fld
setIntValue
:
i
];
}
}
...
@@ -824,7 +824,7 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha
...
@@ -824,7 +824,7 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha
var_SetBool
(
p_intf
,
"volume-save"
,
[
o_audio_autosavevol_yes_bcell
state
]);
var_SetBool
(
p_intf
,
"volume-save"
,
[
o_audio_autosavevol_yes_bcell
state
]);
config_PutInt
(
p_intf
,
"spdif"
,
[
o_audio_spdif_ckb
state
]);
config_PutInt
(
p_intf
,
"spdif"
,
[
o_audio_spdif_ckb
state
]);
if
([
o_audio_vol_fld
isEnabled
])
if
([
o_audio_vol_fld
isEnabled
])
config_PutInt
(
p_intf
,
"auhal-volume"
,
([
o_audio_vol_fld
intValue
]
*
512
)
/
1
00
);
config_PutInt
(
p_intf
,
"auhal-volume"
,
([
o_audio_vol_fld
intValue
]
*
AOUT_VOLUME_MAX
)
/
2
00
);
SaveIntList
(
o_audio_dolby_pop
,
"force-dolby-surround"
);
SaveIntList
(
o_audio_dolby_pop
,
"force-dolby-surround"
);
...
...
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