|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.engines.NullSample
A do nothing implementation of the sound object.
gameframe.Sample
Field Summary | |
private float |
m_pan
The pan set by user. |
private float |
m_volume
The volume set by user. |
Constructor Summary | |
NullSample()
|
Method Summary | |
void |
finalize()
Does nothing. |
Sample |
getCopy()
Returns a new do nothing implementation of a sound object. |
float |
getPan()
Returns the stored pan. |
float |
getVolume()
Returns the stored volume. |
boolean |
isPlaying()
Returns always false. |
void |
playLooped()
Does nothing. |
void |
playOnce()
Does nothing. |
void |
setPan(float pan)
Sets the pan of the sound. |
void |
setVolume(float volume)
Sets the volume of the sound. |
void |
stop()
Does nothing. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private float m_pan
private float m_volume
Constructor Detail |
public NullSample()
Method Detail |
public void playOnce()
playOnce
in interface Sound
public void playLooped()
playLooped
in interface Sound
public void stop()
stop
in interface Sound
public boolean isPlaying()
isPlaying
in interface Sound
public void setVolume(float volume)
setVolume
in interface Sample
volume
- The sounds volume.public void setPan(float pan)
setPan
in interface Sample
pan
- The pan of the sound.public float getVolume()
getVolume
in interface Sample
public float getPan()
getPan
in interface Sample
public Sample getCopy()
getCopy
in interface Sample
public void finalize()
finalize
in interface Sound
finalize
in class java.lang.Object
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |