Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.Applet;
- import java.applet.AudioClip;
- public class SoundManager {
- private ResourceManager resourceManager;
- SoundManager(ResourceManager resourceManager) {
- this.resourceManager = resourceManager; };
- private AudioClip clip;
- private AudioClip buzz;
- void playMusic()
- {
- clip = resourceManager.getSound("music.mid").loop();
- }
- void playSound()
- {
- buzz = resourceManager.getSound("buzz.mid").play();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement