|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoagg.artwork.sound.AbstractSoundClips
moagg.artwork.sound.MusicClips
public class MusicClips
| 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 |
|---|
public MusicClips()
| Method Detail |
|---|
public static MusicClips getInstance()
public void init(com.golden.gamedev.GameObject loader)
init in class AbstractSoundClipspublic void stop()
public void playTitle()
public void play()
protected void play(int id)
public void update(long elapsedTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||