|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The sound data is a template used to play sounds. It represents a sound file just after it was loaded. To play the sound, you must first prepare it and obtain a sound handle.
Method Summary | |
csSoundFormat |
getFormat()
Get the format of the sound data. |
iPointer |
getStaticData()
Get a pointer to the data buffer (static sounds only);. |
long |
getStaticSampleCount()
Get size of this sound in samples (static sounds only);. |
boolean |
initialize(csSoundFormat fmt)
Prepare the sound for output using the given format. |
boolean |
isStatic()
Return true if this is a static sound, false if it is streamed. |
iPointer |
readStreamed(long NumSamples)
Read a data buffer from the sound (streamed sounds only);. |
void |
resetStreamed()
Reset the sound to the beginning (streamed sounds only);. |
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 csSoundFormat getFormat()
public iPointer getStaticData()
public long getStaticSampleCount()
public boolean initialize(csSoundFormat fmt)
fmt
-
public boolean isStatic()
public iPointer readStreamed(long NumSamples)
NumSamples
-
public void resetStreamed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |