|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.sound.JavaSoundPlayer.SoundKey
protected static class JavaSoundPlayer.SoundKey
A key for tracking sounds.
| Field Summary | |
|---|---|
byte |
cmd
|
String |
key
|
float |
pan
The pan, or 0 to center the sound. |
String |
pkgPath
|
boolean |
running
Should we still be running? |
long |
stamp
|
Thread |
thread
The player thread, if it's playing us. |
float |
volume
|
| Constructor Summary | |
|---|---|
JavaSoundPlayer.SoundKey(byte cmd)
Create a SoundKey that just contains the specified command. |
|
JavaSoundPlayer.SoundKey(byte cmd,
String pkgPath,
String key)
Quicky constructor for music keys and lock operations. |
|
JavaSoundPlayer.SoundKey(byte cmd,
String pkgPath,
String key,
int delay,
float volume,
float pan)
Constructor for a sound effect soundkey. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
float |
getPan()
Get the pan value of this sound. |
float |
getVolume()
Get the volume of this sound. |
int |
hashCode()
|
boolean |
isExpired()
Has this sound key expired. |
protected boolean |
isLoop()
If this key is one of the two loop types. |
void |
setPan(float newPan)
Set the pan value for the sound. |
void |
setVolume(float vol)
Set the volume of the sound. |
void |
stop()
Stop playing or looping the sound. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte cmd
public String pkgPath
public String key
public long stamp
public volatile boolean running
public volatile float volume
public volatile float pan
public Thread thread
| Constructor Detail |
|---|
public JavaSoundPlayer.SoundKey(byte cmd)
public JavaSoundPlayer.SoundKey(byte cmd,
String pkgPath,
String key)
public JavaSoundPlayer.SoundKey(byte cmd,
String pkgPath,
String key,
int delay,
float volume,
float pan)
| Method Detail |
|---|
public void stop()
SoundPlayer.Frob
stop in interface SoundPlayer.Frobpublic void setVolume(float vol)
SoundPlayer.Frob
setVolume in interface SoundPlayer.Frobpublic float getVolume()
SoundPlayer.Frob
getVolume in interface SoundPlayer.Frobpublic void setPan(float newPan)
SoundPlayer.Frob
setPan in interface SoundPlayer.Frobpublic float getPan()
SoundPlayer.Frob
getPan in interface SoundPlayer.Frobpublic boolean isExpired()
protected boolean isLoop()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||