How to Pause Music

Hello, I am using p5 and p5.sound to develop my first game. There is just one problem. While I minimalize the game at android game is paused but music is keep playing. How to pause the music when I leave game?

in Setup I have: music.loop();

Tagged:

Answers

Sign In or Register to comment.