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
a528e8a9
Commit
a528e8a9
authored
Jul 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: set volume on playlist
parent
f1330ca6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+5
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+4
-1
No files found.
modules/gui/macosx/controls.m
View file @
a528e8a9
...
...
@@ -420,10 +420,13 @@
-
(
IBAction
)
volumeSliderUpdated
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
audio_volume_t
i_volume
=
(
audio_volume_t
)[
sender
intValue
];
int
i_volume_step
=
0
;
int
i_volume_step
;
i_volume_step
=
config_GetInt
(
p_intf
->
p_libvlc
,
"volume-step"
);
aout_VolumeSet
(
p_intf
,
i_volume
*
i_volume_step
);
aout_VolumeSet
(
p_playlist
,
i_volume
*
i_volume_step
);
pl_Release
(
p_playlist
);
/* Manage volume status */
[
o_main
manageVolumeSlider
];
}
...
...
modules/gui/macosx/intf.m
View file @
a528e8a9
...
...
@@ -1612,7 +1612,10 @@ static void manage_cleanup( void * args )
-
(
void
)
manageVolumeSlider
{
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_VolumeGet
(
p_playlist
,
&
i_volume
);
pl_Release
(
p_intf
);
if
(
i_volume
!=
i_lastShownVolume
)
{
...
...
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