We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Concerns: https://p5js.org/reference/#/p5.SoundFile/pause
OS: Windows 7
Browser: Firefox Quantum 57.02 (64 bits)
p5.js v0.5.16
let bPlay = true;
let sndFile;
function preload()
{
sndFile = loadSound('Sound/D960_3.mp3');
}
function setup()
{
sndFile.play();
}
function mousePressed()
{
if (bPlay) { sndFile.pause(); bPlay=false; }
else { sndFile.play(); bPlay=true; }
}
Answers
https://GitHub.com/processing/p5.js-sound/issues
@GoToLoop: Do you (or anyone else) have the same problem?
Never used that library. 8-X
@GoToLoop: Thanks for the GitHub link.
@GoToLoop: Followed your advice.
https://github.com/processing/p5.js-sound/issues/235