Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Snooping through the files now are we?
- // Compile With: g++ main.cpp loadImage.h playSound.h -lSDL2 -lSDL2_image -lSDL2_mixer -Wall -o "Butter Game"
- #include <SDL2/SDL_mixer.h>
- void playMusic(const char* path, int loops)
- {
- Mix_Music* music;
- music = Mix_LoadMUS(path);
- Mix_PlayMusic(music, loops);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement