#Make a pygame file import pygame #MUSIC----------------------------------------------- #Picking a Audio pygame.mixer.music.load('game-music-loop-6-144641.mp3') #Brackets = amount of loops ((0) = none (5)= 5 times (-1) = forever) pygame.mixer.music.play(0) pygame.mixer.music.play(5) pygame.mixer.music.play(-1) #Stop the sound pygame.mixer.music.stop() #pause and unpause the sound pygame.mixer.music.pause() pygame.mixer.music.pause() #Rewinds the currently playing music to the start. pygame.mixer.music.rewind() # – Takes values in between 0.0 and 1.0. When a new music piece is loaded, these settings reset. pygame.mixer.music.set_volume() #– Checks to see if music is currently playing or not. Returns False if not playing and True if it is. pygame.mixer.music.get_busy() SONG_END_EVENT = pygame.USEREVENT + 1 #SOUND--------------------------------------------------------------- sound_effect = pygame.mixer.Sound('crash.wave') #ALT sound_effect.play() pygame.mixer.Sound.play(sound_effect)