public MusicPlayerPlaylistController() {
   isPlaying = false;
   enabled = false;
   Environment.getEnvironmentInstance().getAudioPlayer().registerObserver(this);
   playlist = Environment.getEnvironmentInstance().getAudioPlaylist();
   player = Environment.getEnvironmentInstance().getAudioPlayer();
 }
 @Override
 public void setPlayerVolume(int value) throws BasicPlayerException {
   Environment.getEnvironmentInstance().getAudioPlayer().setVolume(value);
 }
 @Override
 public AudioMetadata getTrackPlayingMetadata() {
   return Environment.getEnvironmentInstance().getAudioPlaylist().getCursor().getAudioMetaData();
 }
Ejemplo n.º 4
0
 protected MuVisMoodFilterNode(String filterName, MuVisFilterNode parent, ProgressStatus status) {
   super(filterName, parent, status);
   Environment.getEnvironmentInstance().getDatabaseManager().registerObserver(this);
 }