Changeset 666:59d28ed05f7c


Ignore:
Timestamp:
Sep 8, 2013, 10:35:33 AM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Graft:
665:a538d791ff9c
Message:

pygame.mixer.Sound is too clever by half and should be shot repeatedly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/sound.py

    r598 r665  
    3636    def init(self):
    3737        mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER)
     38        silence = self.load_sound("silence.ogg")
     39        if silence.get_length() < 1:
     40            raise RuntimeError("Sound load error - silence.ogg too short")
    3841        self.play_sound("silence.ogg")
    3942
Note: See TracChangeset for help on using the changeset viewer.