diff --git a/docs/changes.rst b/docs/changes.rst index c68db685..a0b555a6 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -18,6 +18,10 @@ v0.9.0 (in development) observed by some users on some Spotify tracks due to a change introduced in 0.8.0. See the issue for a patch that applies to 0.8.0. +- Volume returned by the MPD command `status` contained a floating point ``.0`` + suffix. This bug was introduced with the large audio outout and mixer changes + in v0.8.0. It now returns an integer again. + v0.8.0 (2012-09-20) =================== diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index 53e8f723..95d6683c 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -371,7 +371,7 @@ class Audio(pykka.ThreadingActor): new_min, new_max = new old_min, old_max = old scaling = float(new_max - new_min) / (old_max - old_min) - return round(scaling * (value - old_min) + new_min) + return int(round(scaling * (value - old_min) + new_min)) def set_metadata(self, track): """