From fd00ec314aaec02cd5bc64fb2f5f758446c544e4 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Fri, 8 Jul 2011 01:52:53 -0700 Subject: [PATCH] Bug fix: Set volume on start up --- pesterchum.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pesterchum.py b/pesterchum.py index abfa329..5750410 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -2027,7 +2027,9 @@ class PesterWindow(MovingWindow): if not pygame.mixer: self.alarm = NoneSound() self.memosound = NoneSound() + self.namesound = NoneSound() self.ceasesound = NoneSound() + self.honksound = NoneSound() else: try: self.alarm = pygame.mixer.Sound(theme["main/sounds/alertsound"]) @@ -2041,10 +2043,10 @@ class PesterWindow(MovingWindow): self.namesound = NoneSound() self.ceasesound = NoneSound() self.honksound = NoneSound() + self.setVolume(self.config.volume()) def setVolume(self, vol): vol = vol/100.0 - print vol self.alarm.set_volume(vol) self.memosound.set_volume(vol) self.namesound.set_volume(vol)