Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Infinite loop?

$
0
0
  I'm working on an audio sample machine using minim. I want one player to pause another and I've gotten the timer to stop but does anyone know why this snippet causes a loop my app can't get out of?.

while(Ads[i].isPlaying()){
        if (Ads[i].position()==Ads[i].length()) {
        Ads[i].pause();
        }
       savedTime=millis();
     }

Viewing all articles
Browse latest Browse all 2896

Trending Articles