Skip to content

Commit

Permalink
Reset the volume in the case of no fade-in (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0600204 authored and FrancescoCeruti committed Sep 4, 2018
1 parent 1f76177 commit 8815627
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lisp/cues/media_cue.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def __elements_changed(self):
def __start__(self, fade=False):
if fade and self._can_fade(self.fadein_duration):
self.__volume.current_volume = 0
else:
# If we know there won't be a fade-in: restore the volume,
# just in case we're resuming after a fade-out-and-pause.
self.__volume.current_volume = self.__volume.volume

self.media.play()
if fade:
Expand Down

0 comments on commit 8815627

Please sign in to comment.