.isPlaying() always returns true, even after the SoundFile has ended. In the following code, the else is never executed. Processing 3.5,3 Processing Sound Library 2.2.0
importprocessing.sound.*;
SoundFilemeow;
voidsetup() { meow = newSoundFile(this, "hamburger.wav");
meow.play();
} voiddraw() { if(meow.isPlaying() == true)
{
println("playing");
} else {
println("not playing");
}
}
.isPlaying() always returns true, even after the SoundFile has ended. In the following code, the else is never executed. Processing 3.5,3 Processing Sound Library 2.2.0