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, sounds = [self.alarm, self.memosound, self.namesound, self.ceasesound,
self.honksound] self.honksound]
for sound in sounds: for sound in sounds:
if pygame and pygame.mixer: if pygame and pygame.mixer and \
sound.set_volume(vol) isinstance(sound, pygame.mixer.sound):
sound.set_volume(vol)
else: else:
sound.setVolume(vol) sound.setVolume(vol)