Pygame Sound (Buffering)

Question:
I Have added sound into my pygame game but it doesn’t play it very well (buffering). Please can you help me fix it
Repl link:
https://replit.com/@RavenSpeed/tetris-draft#main.py

code snippet
#Instantiate mixer
mixer.init()
 
pygame.mixer.music.load("01. Title.mp3")

# Play the music and set it to loop forever
pygame.mixer.music.play(10000)

This may just be a sound quality issue you encountered while importing the mp3 into Replit. Delete the file and try again, see how that works.

4 Likes