4c33830472df597b7d8fcfd2ad87d97752f6d9a5
2 * The player class used for playing the music.
5 import javax
.microedition
.media
.*;
9 public static Player p
= null;
11 /* load music player */
12 public static int a(String resource
, String type
)
20 p
= Manager
.createPlayer(FW
.fw
.getClass().getResourceAsStream(resource
), type
);
50 /* stops playing the music */
51 public static void b()
64 /* set loop count, -1 indefinitely */
65 public static int a(int x
)
71 if (p
.getState() == Player
.STARTED
)
84 /* get duration time in milliseconds */
91 return (int)(p
.getDuration() / 1000);