|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a simple audible alert, such as message-beep when someone has sent you a chat message. Alerts cannot be stopped once they're sent to the client.
You can simply play the alert by passing its filename to player.playAlert(), or you can customize its parameters first.
Method Summary | |
double |
getGain()
Returns the sound volume |
java.lang.String |
getPath()
Returns relative path to the sound file |
void |
setGain(double gain)
Sets the sound volume |
void |
setPath(java.lang.String path)
Sets relative path to the sound file |
Method Detail |
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- relative path to the sound file,
e.g. "wiz/foobar/sounds/mysound.ogg"public double getGain()
public void setGain(double gain)
gain
- the sound volume, from 0.0 to 1.0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |