|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The sound source is an instance of a sound. It can be a non-3d source, in which case it plays the sound as it was recorded, or a 3d source, in which case it represents an object in 3d space and adjusts L/R volume for 3d sound.
Method Summary | |
float |
getFrequencyFactor()
Get frequency factor. |
int |
getMode3D()
return 3d mode |
csVector3 |
getPosition()
get position of this source |
csVector3 |
getVelocity()
get velocity of this source |
float |
getVolume()
Get volume (range from 0.0 to 1.0);. |
void |
play()
Play the sound. |
void |
play(long playMethod)
Play the sound. |
void |
setFrequencyFactor(float factor)
Set frequency factor : 1 = normal, >1 faster, 0-1 slower. |
void |
setMode3D(int m)
set 3d mode |
void |
setPosition(csVector3 pos)
set position of this source |
void |
setVelocity(csVector3 spd)
set velocity of this source |
void |
setVolume(float volume)
Set volume (range from 0.0 to 1.0);. |
void |
stop()
Stop the sound. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public float getFrequencyFactor()
public int getMode3D()
public csVector3 getPosition()
public csVector3 getVelocity()
public float getVolume()
public void play()
public void play(long playMethod)
playMethod
- public void setFrequencyFactor(float factor)
factor
- public void setMode3D(int m)
m
- public void setPosition(csVector3 pos)
pos
- public void setVelocity(csVector3 spd)
spd
- public void setVolume(float volume)
volume
- public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |