from pygame import mixer
mixer.init()
mixer.music.load("music/Recording.mp3")
mixer.music.play(100)
is what I'm using right at the start of game code (not in a loop). i have looked it up and cant find why it wont work
You have to wait while music will ends playing:
import pygame
from pygame import mixer
mixer.init()
mixer.music.load(r'music.mp3')
mixer.music.play(100)
while pygame.mixer.music.get_busy():
continue