Can you verify that the second file plays through pygame?
Also, how are you running this code? If you execute it as a python script then, without some loop at the end, the code will just exit.
I don't have a pi that I can easily test this on. However, I've tested it on my laptop (Ubuntu) and it works as expected for me.
This was the code I ran:
Code: Select all
mix = pygame.mixer # This is just me being lazy!
music = mix.music # ditto
f1 = "/usr/share/sounds/alsa/Front_Center.wav"
f2 = "/usr/share/sounds/alsa/Front_Left.wav"