How can I switch to a new music file while my Python program is running livewires?
Question: I load a file and then play it, that works fine. Then if I load another music
file neither plays. I need to load one music track, play it, then stop it,
then load and play a second track. Is this just not possible?

games.music.load("theme.mp3") games.music.play(-1)

games.music.load("bonus_theme.mp3") games.music.play(-1)


Answer: Why not load both into variables and then use .play() and .stop()? For
example:

    
    
    import pygame
    theme = pygame.mixer.Sound('theme.mp3')
    bonusTheme = pygame.mixer.Sound('bonus_theme.mp3')
    
    theme.play(-1)
    theme.stop()
    bonusTheme.play(-1)
    

