Every time I play a sound in pygame, the entire game loop pauses and I don't know how to make it so that it starts playing the sound and then continues on with running the other code in the game.
example_sound = pygame.mixer.Sound("sound.mp4")
while True:
if mouse_clicked:
example_sound.play()
# Has to play entire sound until moving onto the do_something_else() function
do_something_else()