|
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.msjava4x.CSoundEngine.CDXSound
DirectSound implementation of the sound object.
Field Summary | |
private gameframe.engines.msjava4x.DirectSoundBuffer |
m_dsBuffer
DirectSound buffer that contains the sample data. |
private boolean |
m_fPlaying
Flag that indicates if the playing has been started. |
private float |
m_pan
The pan of the sound. |
private float |
m_volume
The volume of the sound. |
Constructor Summary | |
(package private) |
CSoundEngine.CDXSound(gameframe.engines.msjava4x.DirectSoundBuffer dsBuffer)
Constructs a DirectSound implementation of the sound object. |
Method Summary | |
void |
finalize()
Frees all the resources that are used by the sound representation. |
Sample |
getCopy()
Returns a copy of this sound object that is independent from the original sound object. |
float |
getPan()
Returns the pan of the sound. |
float |
getVolume()
Returns the volume of the sound. |
boolean |
isPlaying()
Returns true if start has been invoked and stop hasn't yet been invoked. |
void |
playLooped()
Plays the given sample over and over again (looping). |
void |
playOnce()
Plays this sample once and then stops. |
void |
setPan(float pan)
Sets the pan of the sound. |
void |
setVolume(float volume)
Sets the volume of the sound. |
void |
stop()
Stops playing the given sample |
Methods inherited from class java.lang.Object |
|
Field Detail |
private gameframe.engines.msjava4x.DirectSoundBuffer m_dsBuffer
private boolean m_fPlaying
private float m_pan
private float m_volume
Constructor Detail |
CSoundEngine.CDXSound(gameframe.engines.msjava4x.DirectSoundBuffer dsBuffer)
dsBuffer
- DirectSound buffer that contains the sample data.Method Detail |
public void playOnce()
playOnce
in interface Sound
public boolean isPlaying()
isPlaying
in interface Sound
public void playLooped()
playLooped
in interface Sound
public void stop()
stop
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()
Sound
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 |