Exemplo n.º 1
0
  @Override
  public void reset() {
    super.reset();
    for (Track eachTrack : IterableArray.get(allTracks)) {
      eachTrack.removeTrackEndedListener(startNextTrack);
      if (eachTrack instanceof BasicTrack) {
        ((BasicTrack) eachTrack).reset();
      }
    }
    setActiveTrack(null);

    trackIt = null;
  }
Exemplo n.º 2
0
  public void setActiveTrack(Track nextTrack) {
    this.activeTrack = nextTrack;

    if (activeTrack != null) {
      activeTrack.addTrackEndedListener(startNextTrack);
      getSequencer().addAndStartTrack(activeTrack);
    }
  }
Exemplo n.º 3
0
 @Override
 public void resume() {
   if (activeTrack != null) {
     activeTrack.resume();
   }
 }
Exemplo n.º 4
0
 @Override
 public void pause() {
   if (activeTrack != null) {
     activeTrack.pause();
   }
 }