audio: Make software mixer volume be an int, not a float
This commit is contained in:
parent
e793be6e18
commit
1eef3f6c0e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user