Skip to content

.isPlaying() always returns 1 #126

@francescosoave

Description

@francescosoave

as per title, .isPlaying() always returns integer 1 even after the SoundFile has ended. In the following code, the else is never executed. Processing 3.3.7, sound library version 1.4.0

import processing.sound.*;
SoundFile f;

void setup() {   
  f = new SoundFile(this, "/samples/sample02.mp3");
  f.play();
}      

void draw() {    
  if(f.isPlaying() == 1)
    println("playing: " + f.isPlaying());
  else  
    println("ended " + f.isPlaying());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions