# HG changeset patch # User Neil Muller # Date 1378636533 -7200 # Node ID 59d28ed05f7c5a96ecaaf07933cb6692fa81be51 # Parent ceb085d5787b5f3052166a5a2a3253842672f771 pygame.mixer.Sound is too clever by half and should be shot repeatedly diff -r ceb085d5787b -r 59d28ed05f7c nagslang/sound.py --- a/nagslang/sound.py Sun Sep 08 11:51:51 2013 +0200 +++ b/nagslang/sound.py Sun Sep 08 12:35:33 2013 +0200 @@ -35,6 +35,9 @@ def init(self): mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER) + silence = self.load_sound("silence.ogg") + if silence.get_length() < 1: + raise RuntimeError("Sound load error - silence.ogg too short") self.play_sound("silence.ogg") def load_sound(self, name):