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
6546505c
Commit
6546505c
authored
Jul 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinCE: volume through playlist
parent
8c1d79e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/gui/wince/interface.cpp
modules/gui/wince/interface.cpp
+5
-1
No files found.
modules/gui/wince/interface.cpp
View file @
6546505c
...
@@ -788,7 +788,9 @@ void Interface::OnChange( int wp )
...
@@ -788,7 +788,9 @@ void Interface::OnChange( int wp )
void
Interface
::
VolumeChange
(
int
i_volume
)
void
Interface
::
VolumeChange
(
int
i_volume
)
{
{
aout_VolumeSet
(
p_intf
,
i_volume
*
AOUT_VOLUME_MAX
/
200
/
2
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_VolumeSet
(
p_playlist
,
i_volume
*
AOUT_VOLUME_MAX
/
200
/
2
);
pl_Release
(
p_intf
);
}
}
void
Interface
::
VolumeUpdate
()
void
Interface
::
VolumeUpdate
()
...
@@ -797,7 +799,9 @@ void Interface::VolumeUpdate()
...
@@ -797,7 +799,9 @@ void Interface::VolumeUpdate()
if
(
b_volume_hold
)
return
;
if
(
b_volume_hold
)
return
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_VolumeGet
(
p_intf
,
&
i_volume
);
aout_VolumeGet
(
p_intf
,
&
i_volume
);
pl_Release
(
p_intf
);
int
i_volume_ctrl
=
200
-
i_volume
*
200
*
2
/
AOUT_VOLUME_MAX
;
int
i_volume_ctrl
=
200
-
i_volume
*
200
*
2
/
AOUT_VOLUME_MAX
;
...
...
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