SDL_Mixer not playing music from the start

I use Mix_LoadMUS() to load a song and then play it with Mix_PlayMusic(music, -1). The first time I use Mix_PlayMusic() it works fine, but when using Mix_HaltMusic() to stop the music and then try to play it again it starts from where the previous song left off and plays that part for half a second before properly restarting. How do I fix this?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum