SDL_mixer looping issues (c++)

I am using SDL_mixer for sound for my c++ game and am trying to have a midi
that I created loop while the application is running. Unfortunately, between
loops there is a slight pause, which has me pretty stumped as a first-time
SDL_mixer-user.

Since the midi is custom, I can say for sure that there is no silence at the
beginning or the end of the file itself and loops seamlessly outside of the
application.

Here is a brief block of code which is resulting in the problem:

SDL_Init(SDL_INIT_EVERYTHING);
Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 4096);
Mix_Music *music = Mix_LoadMUS(“whatever_song.mid”);
Mix_PlayMusic(music, -1);

Any help or insight would be appreciated, thanks!