|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sound
Describes a type of sound: its default gain, pitch, looping, priority, and the URL to obtain the Ogg Vorbis data that defines it.
Method Summary | |
---|---|
Attenuator |
getAttenuator()
Returns the Attenuator to use for this Sound. |
int |
getFormat()
|
float |
getGain()
Returns the gain. |
float |
getPitch()
Returns the pitch. |
int |
getPriority()
Returns the priority. |
java.lang.String |
getURL()
|
boolean |
isLooped()
Returns looped status |
boolean |
isStereo()
|
void |
setAttenuator(Attenuator attenuator)
Sets the Attenuator to use for this Sound. |
void |
setGain(float gain)
Sets the default gain for this buffer |
void |
setLooped(boolean looped)
Sets whether this buffer should be looped by default |
void |
setPitch(float pitch)
Sets the default pitch for this buffer |
void |
setPriority(int priority)
Sets the default priority for this buffer relative to all other buffers. |
void |
setURL(java.lang.String url)
Sets the URL from where this AbstractSound will read Ogg Vorbis data |
Method Detail |
---|
void setGain(float gain)
gain
- (must be ≥ 0.0f and ≤ 1.0f)void setPitch(float pitch)
pitch
- (must be > 0.0f)void setPriority(int priority)
priority
- (must be >= 0)void setLooped(boolean looped)
looped
- void setURL(java.lang.String url)
url
- May ne nullfloat getGain()
float getPitch()
int getPriority()
boolean isLooped()
Attenuator getAttenuator()
Attenuator
to use for this Sound. The default Attenuator is specified by the SoundEngine
itself,
so if no attenuator has been set with setAttenuator(Attenuator)
then the default returned by
SoundEngine.getDefaultAttenuator()
will be used instead when playing the sound.
setAttenuator(Attenuator)
,
SoundEngine.getDefaultAttenuator()
void setAttenuator(Attenuator attenuator)
Attenuator
to use for this Sound. If set to null, then the default attenuator as returned by
SoundEngine.getDefaultAttenuator()
will be used when playing this sound.
attenuator
- May be nullgetAttenuator()
,
SoundEngine.getDefaultAttenuator()
java.lang.String getURL()
int getFormat()
boolean isStereo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |