framework
Class SoundGroup
java.lang.Object
framework.SoundGroup
public class SoundGroup
- extends Object
A collection of Sound
objects which can be acted on collectively.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoundGroup
public SoundGroup()
addSound
public void addSound(Sound sound)
addSound
public void addSound(Sound sound,
String name)
loadSound
public void loadSound(URL url,
String name)
throws IOException
- Throws:
IOException
loadSound
public void loadSound(URL url,
String name,
boolean prepare)
throws IOException
- Throws:
IOException
getSound
public Sound getSound(String name)
getClip
public Clip getClip(String name)
getAllSounds
public Collection getAllSounds()
pauseAll
public void pauseAll()
resumeAll
public void resumeAll()
stopAll
public void stopAll()
isMuted
public boolean isMuted()
setMuted
public void setMuted(boolean mute)
getVolume
public float getVolume()
setVolume
public void setVolume(float volume)