I am currently having a certain error with background audio on my file in PyGame.
I have imported pygame mixer, initialized it, and used the following code:
pygame.mixer.music.load(open("BACKGROUND.mp3","rb"))
pygame.mixer.music.play()
The sound only plays when I am dragging / holding the window. Any idea why this may occur? Please help this is for a school project.