You have to unload the music file.
Pygame mixer music unload. Web 1 answer sorted by: The mixer module must be initialized like other pygame. Pygame can load wav, mp3, or ogg files.
Web the mixer also has a special streaming channel. Pygame.mixer.music.play (loops, start, fade_ms ):. Web pygame.mixer.music.load('') worked, whereas pygame.mixer.music.load(u'') didn't., but pygame.mixer.music.load(u''.encode('utf8')).
Web the syntax for loading music files and sound files is as follows. Web an example to demonstrate this: This is for music playback and is accessed through the pygame.mixer.music pygame module for controlling streamed.
Web use the music module to control the playback of music in the sound mixer. This will load the music file/filename object. The difference between the music playback and regular sound playback is that the music is streamed,.
Pygame.mixer.music.load (listofsongs [0]) causes the program to not. Mixer.music.load (song.mp3) setting the volume. The difference is explained in the documentation:
Remember to keep both in the same directory else you’ll have to mention the full file. Web there are basically four steps in order to do so: Web unlike mixer module, the music module streams the music from the files without loading music at once into memory.