From 55e4cf3531983d7d334d0477687a4e7ea77931a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 22 Jul 2016 23:41:03 +0200 Subject: Fix setting volume when not playing --- helpers/music_file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/music_file.py b/helpers/music_file.py index b26a1be..5f4fe76 100644 --- a/helpers/music_file.py +++ b/helpers/music_file.py @@ -289,6 +289,9 @@ class MusicFile(Machine): value + int(delta) * self.volume, self.volume) + if not (self.is_loaded_playing() or self.is_loaded_paused()): + return + if fade > 0: self.gain_effects.append(GainEffect( "fade", -- cgit v1.2.3