moagg.artwork.sound
Class MusicClips

java.lang.Object
  extended by moagg.artwork.sound.AbstractSoundClips
      extended by moagg.artwork.sound.MusicClips

public class MusicClips
extends AbstractSoundClips


Constructor Summary
MusicClips()
           
 
Method Summary
static MusicClips getInstance()
           
 void init(com.golden.gamedev.GameObject loader)
           
 void play()
           
protected  void play(int id)
           
 void playTitle()
           
 void stop()
           
 void update(long elapsedTime)
          Since the bsMusic engine doesn't work with the ModPlayer for some reason (bsMusic.play() always returns -1), I decided to poll the ModPlayer during the game loop to know when to play the next track.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicClips

public MusicClips()
Method Detail

getInstance

public static MusicClips getInstance()

init

public void init(com.golden.gamedev.GameObject loader)
Specified by:
init in class AbstractSoundClips

stop

public void stop()

playTitle

public void playTitle()

play

public void play()

play

protected void play(int id)

update

public void update(long elapsedTime)
Since the bsMusic engine doesn't work with the ModPlayer for some reason (bsMusic.play() always returns -1), I decided to poll the ModPlayer during the game loop to know when to play the next track.



Copyright © 2008. All Rights Reserved.