示例#1
0
 public void Restart() {
   if (player != null && !player.getSourceLocation().equals(null)
       || !player.getSourceLocation().equals("")) {
     player.stop();
     player.play();
   }
 }
示例#2
0
 /** Pauses the music file. */
 public void Pause() {
   if (player != null && !player.getSourceLocation().equals(null)
       || !player.getSourceLocation().equals("")) {
     player.pause();
   }
 }