Guest User

Untitled

a guest
Apr 14th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Snooping through the files now are we?
  2.  
  3. // Compile With: g++ main.cpp loadImage.h playSound.h -lSDL2 -lSDL2_image -lSDL2_mixer -o "Butter Game"
  4.  
  5. #include <SDL2/SDL_mixer.h>
  6.  
  7. void playMusic(const char* path, int loops)
  8. {
  9. Mix_Music* music;
  10. music = Mix_LoadMUS(path);
  11.  
  12. Mix_PlayMusic(music, loops);
  13. }
Add Comment
Please, Sign In to add comment