@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; }
public void setActiveTrack(Track nextTrack) { this.activeTrack = nextTrack; if (activeTrack != null) { activeTrack.addTrackEndedListener(startNextTrack); getSequencer().addAndStartTrack(activeTrack); } }
@Override public void resume() { if (activeTrack != null) { activeTrack.resume(); } }
@Override public void pause() { if (activeTrack != null) { activeTrack.pause(); } }