|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.klafbang.tincpn.animation.plugin.SoundPlayer
public class SoundPlayer
Constructor Summary | |
---|---|
SoundPlayer(java.lang.String name)
Construct a new SoundPlayer. |
Method Summary | |
---|---|
int |
loadSound(java.lang.String url)
Load a sound for later playback. |
void |
playSound(int key)
Play back an earlier loaded sound. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoundPlayer(java.lang.String name)
name
- name of the SoundPlayer -- not used.Method Detail |
---|
public int loadSound(java.lang.String url) throws java.lang.Exception
url
- the URL of the sound to load
java.lang.Exception
- if the URL is invalidpublic void playSound(int key) throws java.lang.Exception
key
- the key of the sound as returned by loadSound
java.lang.Exception
- if the key is invalid
|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |