コード例 #1
0
 public void startPlay(String fileName) {
   if (splayer != null
       && splayer.getPlayFileName().equals(fileName)
       && !splayer.isStop()
       && splayer.isPaused()) {
     splayer.resumePlay();
   } else {
     splayer = new SpeexPlayer(fileName);
     splayer.startPlay();
   }
   status = PLAYING;
 }
コード例 #2
0
 public int getStatus() {
   if (status == PLAYING && splayer.isStop()) status = STOPPED;
   return status;
 }
コード例 #3
0
 public void stopPlay() {
   if (splayer != null && !splayer.isStop()) splayer.stopPlay();
   status = STOPPED;
 }