(Play, loop, and stop a sound clip) Write a program that meets the following requirements:
■ Get an audio file from the class directory using AudioClip.
■ Place three buttons labeled Play, Loop, and Stop, as shown in Figure 1a.
■ If you click the Play button, the audio file is played once. If you click the Loop button, the audio file keeps playing repeatedly. If you click the Stop button, the playing stops.
FIGURE 1 (a) Click Play to play an audio clip once, click Loop to play an audio repeatedly, and click Stop to terminate playing. (b) The program lets the user specify image files, an audio file, and the animation speed.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.