Sound and Music
To play sounds: Mix_PlayChannel(channel, sample, loop); And music: Mix_PlayMusic(song, loop); And to stop them: Mix_HaltChannel(channel); and: Mix_HaltMusic();
Mix_PlayChannel(channel, sample, loop);
And music:
Mix_PlayMusic(song, loop);
And to stop them:
Mix_HaltChannel(channel);
and:
Mix_HaltMusic();