Created
September 19, 2014 21:27
-
-
Save lesp/e2ab8a553136a4d3b89e to your computer and use it in GitHub Desktop.
Function to play sound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Function to play sounds | |
def play_sound(x): | |
pygame.mixer.music.load(x) | |
pygame.mixer.music.play(1) | |
while pygame.mixer.get_busy() == True: | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment