Advertisement
Guest User

Untitled

a guest
Apr 28th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2. Mix_PlayMusic(song, 1); //Play the song
  3. std::cin >> choice;
  4.  
  5. if(Mix_PlayingMusic() == 1)
  6. {
  7. if (choice == "STOP")
  8. {
  9. Mix_PauseMusic();
  10. std::cin >> choice;
  11. }
  12. }
  13.  
  14. else if (Mix_PausedMusic() == 1)
  15. {
  16. Mix_ResumeMusic();
  17. }
  18. Mix_FreeMusic(song);
  19. Mix_CloseAudio();
  20. Mix_Quit();
  21. SDL_Quit();
  22. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement