Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
26b6b8a1
Commit
26b6b8a1
authored
Jul 23, 2005
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: use AOUT_VOLUME_MAX / 2 instead of AOUT_VOLUME_MAX, for the maximum
volume.
parent
c63dbfbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+1
-1
modules/gui/skins2/vars/volume.cpp
modules/gui/skins2/vars/volume.cpp
+2
-2
No files found.
modules/gui/skins2/src/vlcproc.cpp
View file @
26b6b8a1
...
...
@@ -213,7 +213,7 @@ void VlcProc::manage()
// Refresh sound volume
audio_volume_t
volume
;
aout_VolumeGet
(
getIntf
(),
&
volume
);
pVolume
->
set
(
(
double
)
volume
/
AOUT_VOLUME_MAX
);
pVolume
->
set
(
(
double
)
volume
*
2.0
/
AOUT_VOLUME_MAX
);
// Set the mute variable
pVarMute
->
set
(
volume
==
0
);
...
...
modules/gui/skins2/vars/volume.cpp
View file @
26b6b8a1
...
...
@@ -33,7 +33,7 @@ Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
// Initial value
audio_volume_t
val
;
aout_VolumeGet
(
getIntf
(),
&
val
);
VarPercent
::
set
(
val
/
AOUT_VOLUME_MAX
);
VarPercent
::
set
(
val
*
2.0
/
AOUT_VOLUME_MAX
);
}
...
...
@@ -45,7 +45,7 @@ void Volume::set( float percentage )
{
VarPercent
::
set
(
percentage
);
aout_VolumeSet
(
getIntf
(),
(
int
)(
get
()
*
AOUT_VOLUME_MAX
)
);
aout_VolumeSet
(
getIntf
(),
(
int
)(
get
()
*
AOUT_VOLUME_MAX
/
2.0
)
);
}
}
...
...
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