Bugfix.
This commit is contained in:
parent
99bd9ddca8
commit
1610cd15de
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue