I'm trying to play some music during the intro of a game, while using pygame, but the track plays slower than it should play and it sounds like is lagging.
I checked the track parameters with wave module and the output shows this:
_wave_params(nchannels=2, sampwidth=2, framerate=44100, nframes=11278336, comptype='NONE', compname='not compressed')
I tried to play music in this way:
intro_music = pygame.mixer.Sound("music.wav")
pygame.mixer.Sound.play(intro_music)
Originally, I converted the track from a .mp3 format to a .wav format, if it helps.