示例#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;
  }
示例#2
0
  public void setActiveTrack(Track nextTrack) {
    this.activeTrack = nextTrack;

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