|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.gameengine.icadroids.sound.MusicPlayer
public final class MusicPlayer
This class features a number of static methods that can be used to add music to your game. This class should be used when you want to play long sound clips or background music. For short soundclips, use the GameSound class.
Constructor Summary | |
---|---|
MusicPlayer()
|
Method Summary | |
---|---|
static void |
pauseAll()
Pauses all playing music, call resumeAll to continue playing music. |
static void |
play(java.lang.String resId,
boolean loop)
Plays the specified music. |
static void |
resumeAll()
Resumes playing all paused music. |
static void |
stop()
Stop playing music. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MusicPlayer()
Method Detail |
---|
public static void play(java.lang.String resId, boolean loop)
resId
- The name of the music that needs to played.public static void stop()
public static void pauseAll()
public static void resumeAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |