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

View file

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