InternalTrackPlayedListener internalListener = new InternalTrackPlayedListener(this.library, listener, whenStarted, whenStopped);
this.listen(listener, internalListener);
}
public void stopListeningForTrack(Track track) {
ITrackPlayedEventListener externalListener = this.observedTracksAndTheirObservers.get(track);
if (externalListener == null){
return;
}
InternalTrackPlayedListener internalListener = (InternalTrackPlayedListener) this.internalListeners.get(externalListener);