.isPlaying() always returns true · Issue #39 · processing/processing-sound (original) (raw)

.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

import processing.sound.*; SoundFile meow;

void setup() {
meow = new SoundFile(this, "hamburger.wav"); meow.play(); }

void draw() {
if(meow.isPlaying() == true) { println("playing"); } else
{ println("not playing"); } }