Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
26b6b8a1
Commit
26b6b8a1
authored
Jul 23, 2005
by
ipkiss
Browse files
* 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
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
Supports
Markdown
0%
Try again
or
attach a new 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