]> git.sesse.net Git - vlc/commit
skins2: fix skins2 audio volume and adapt to latest change
authorErwan Tulou <erwan10@videolan.org>
Sat, 21 Jul 2012 01:45:13 +0000 (03:45 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sat, 21 Jul 2012 13:05:41 +0000 (15:05 +0200)
commita2d83783991312cac5f3c6094ef8ed425c4bac8d
tree96854a493553fc6284242746c8b270c60574c9fa
parentd871c27f40b110788814f9a5fcc0a2d6a1307062
skins2: fix skins2 audio volume and adapt to latest change

   - use the overall volume managed by the playlist rather than
     aout_volumeGet() that now only works when a aout is running.
     This is no problem since the skins2 volume slider functionally
     reflects this overall volume managed by the playlist anyway.
   - stick to what include/vlc_aout_intf.h lets us know about volume
     boundaries(as of today, AOUT_VOLUME_DEFAULT and AOUT_VOLUME_MAX)
     and infer volume to be in the [0., AOUT_VOLUME_MAX/AOUT_VOLUME_DEFAULT]
     range as requested by some functions taking a float as parameter.
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/vars/volume.cpp
modules/gui/skins2/vars/volume.hpp