framework
Class SoundGroup

java.lang.Object
  extended by framework.SoundGroup

public class SoundGroup
extends Object

A collection of Sound objects which can be acted on collectively.


Constructor Summary
SoundGroup()
           
 
Method Summary
 void addSound(Sound sound)
           
 void addSound(Sound sound, String name)
           
 Collection getAllSounds()
           
 Clip getClip(String name)
           
 Sound getSound(String name)
           
 float getVolume()
           
 boolean isMuted()
           
 void loadSound(URL url, String name)
           
 void loadSound(URL url, String name, boolean prepare)
           
 void pauseAll()
           
 void resumeAll()
           
 void setMuted(boolean mute)
           
 void setVolume(float volume)
           
 void stopAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundGroup

public SoundGroup()
Method Detail

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)