This commit is contained in:
karxi 2016-11-19 16:18:16 -05:00
parent 99bd9ddca8
commit 1610cd15de

View file

@ -1672,7 +1672,8 @@ class PesterWindow(MovingWindow):
sounds = [self.alarm, self.memosound, self.namesound, self.ceasesound,
self.honksound]
for sound in sounds:
if pygame and pygame.mixer:
if pygame and pygame.mixer and \
isinstance(sound, pygame.mixer.sound):
sound.set_volume(vol)
else:
sound.setVolume(vol)