Skip to content

.isPlaying() always returns true #39

Description

@aidanhasaknife

.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");
  }
}

Activity

  1. kevinstadler commented on Jul 10, 2019

    @kevinstadler
    Collaborator

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

  2. kevinstadler commented on Jul 14, 2019

    @kevinstadler
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions