def sound_alarm(blocking=False): pygame.mixer.init() bell_sound = pygame.mixer.Sound(resources.get_bellpath("Alien_Siren-KevanGC.wav")) ch = bell_sound.play() if blocking: while ch.get_busy(): pygame.time.delay(100)
def bell(blocking=False): pygame.mixer.init() bell_sound = pygame.mixer.Sound(resources.get_bellpath("bell.wav")) ch = bell_sound.play() if blocking: while ch.get_busy(): pygame.time.delay(100)