audio: Make software mixer volume be an int, not a float

This commit is contained in:
Stein Magnus Jodal 2012-11-13 15:32:27 +01:00
parent e793be6e18
commit 1eef3f6c0e

View File

@ -329,7 +329,7 @@ class Audio(pykka.ThreadingActor):
:rtype: int in range [0..100] or :class:`None`
"""
if self._software_mixing:
return round(self._playbin.get_property('volume') * 100)
return int(round(self._playbin.get_property('volume') * 100))
if self._mixer is None:
return None