Skip to content

.isPlaying() always returns true #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aidanhasaknife opened this issue Jul 10, 2019 · 2 comments
Closed

.isPlaying() always returns true #39

aidanhasaknife opened this issue Jul 10, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@aidanhasaknife
Copy link

.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");
  }
}
@kevinstadler kevinstadler added the bug Something isn't working label Jul 10, 2019
@kevinstadler
Copy link
Collaborator

Thanks for reporting, I'll have a look at it

@kevinstadler
Copy link
Collaborator

@Aidan-Lineberry this should be fixed with version 2.2.2. If you want you can immediately download the new version from here: https://github.com/processing/processing-sound/releases/tag/v2.2.2 simply extract the sound.zip file into your Processing/libraries folder (overwriting the existing sound/ folder), otherwise the new version should become available for auto-update through Processing's contribution manager within a week at most.

Thanks again for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants