1 /*
2 * The player class used for playing the music.
3 * */
7 public class P
8 {
11 /* load music player */
13 {
14 try
15 {
17 {
19 }
23 }
25 {
27 }
30 }
32 /* play */
34 {
35 try
36 {
41 }
43 {
45 }
48 }
50 /* stops playing the music */
52 {
53 try
54 {
56 {
58 }
59 }
61 {}
62 }
64 /* set loop count, -1 indefinitely */
66 {
67 try
68 {
70 {
75 }
78 {
80 }
82 }
84 /* get duration time in milliseconds */
86 {
87 try
88 {
90 {
92 }
94 }
96 {
98 }
99 }
101 }