de.jos.game.music
Class Player

java.lang.Object
  extended by de.jos.game.music.Player
All Implemented Interfaces:
java.util.EventListener, javax.sound.sampled.LineListener

public class Player
extends java.lang.Object
implements javax.sound.sampled.LineListener

Author:
root

Constructor Summary
Player()
           
 
Method Summary
 void initPlayer(java.lang.String fileName)
           
 void playMusic()
           
 void stopMusic()
           
 void update(javax.sound.sampled.LineEvent event)
          Notify the Player when the tune is over !
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player()
Method Detail

initPlayer

public void initPlayer(java.lang.String fileName)

playMusic

public void playMusic()

stopMusic

public void stopMusic()

update

public void update(javax.sound.sampled.LineEvent event)
Notify the Player when the tune is over !

Specified by:
update in interface javax.sound.sampled.LineListener


Copyright © 2008. All Rights Reserved.