|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.spark.SoundManager
public class SoundManager
This manager is responsible for the playing, stopping and caching of sounds within Spark. You would use this manager when you wish to play audio without adding too much memory overhead.
Constructor Summary | |
---|---|
SoundManager()
Default constructor |
Method Summary | |
---|---|
java.applet.AudioClip |
getClip(java.lang.String clip)
Plays an audio clip of local clips deployed with Spark. |
void |
playClip(java.applet.AudioClip clip)
Plays an AudioClip. |
void |
playClip(java.io.File soundFile)
Plays a sound file. |
void |
playClip(java.lang.String clipToPlay)
Plays an AudioClip. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoundManager()
Method Detail |
---|
public java.applet.AudioClip getClip(java.lang.String clip)
clip
- the properties value found in la.properties.
public void playClip(java.applet.AudioClip clip)
clip
- the audioclip to play.public void playClip(java.lang.String clipToPlay)
clipToPlay
- the properties value found in la.properties.public void playClip(java.io.File soundFile)
soundFile
- the File object representing the wav file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |