|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SoundEffect
A sound effect that is currently playing.
| Method Summary | |
|---|---|
float |
getSamplePosition()
|
boolean |
isActive()
Determines whether this sound effect is still active. |
void |
pause()
Pause this sound effect |
void |
play()
Play this sound effect |
void |
rewind()
Rewind this sound effect. |
void |
setAttenuator(Attenuator attenuator)
Specifies how the sound effect should be attenuated. |
void |
setFade(int duration,
float finalGain,
boolean stopAtEnd)
Fade this sound effect in or out to a new gain level over a number of ticks. |
void |
setGain(float gain)
Set the gain of this effect |
void |
setLooped(boolean looped)
Specifies that the sound effect should be looped or not |
void |
setPitch(float pitch)
Set the pitch of this effect |
void |
setPosition(float x,
float y,
float z)
Set the position of this sound effect in world coordinates |
void |
setRadius(float radius)
|
void |
stop()
Stop this sound effect. |
| Method Detail |
|---|
void setPosition(float x,
float y,
float z)
x - y - void setGain(float gain)
gain - must be ≥ 0.0f and ≤ 1.0fvoid setPitch(float pitch)
pitch - must be > 0.0f and ≤ 1.0fvoid play()
void pause()
void stop()
void rewind()
void setLooped(boolean looped)
looped - void setAttenuator(Attenuator attenuator)
attenuator - May be null
void setFade(int duration,
float finalGain,
boolean stopAtEnd)
duration - The duration, in ticksfinalGain - Must be between 0.0f and 1.0f inclusivestopAtEnd - Whether to stop() the sound effect when the target gain is reachedboolean isActive()
float getSamplePosition()
void setRadius(float radius)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||