|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.sound.drivers.lwjgl.SoundSourceImpl
public class SoundSourceImpl
LWJGL OpenAL implementation of SoundSource.
| Constructor Summary | |
|---|---|
SoundSourceImpl(SoundDriverImpl driver)
|
|
| Method Summary | |
|---|---|
SoundDriver |
getSoundDriver()
|
SoundState |
getState()
|
boolean |
isPlaying()
|
void |
pause()
|
void |
play()
|
void |
queueBuffer(SoundBuffer buffer)
Description: Specify the current Buffer object, which means the head entry in its queue. |
void |
rewind()
|
void |
setBuffer(SoundBuffer buffer)
|
void |
setContainer(SoundContainer container)
An alternate to explicitly providing the buffers via the queueBuffer method is to provide a sound data container which will generate the data needed to create the buffers. |
void |
setDirection(float dirX,
float dirY,
float dirZ)
Description: If DIRECTION does not equal the zero vector, the Source is directional. |
void |
setDirection(org.openmali.vecmath2.Tuple3f direction)
Description: If DIRECTION does not equal the zero vector, the Source is directional. |
void |
setLoop(boolean loop)
LOOPING is a flag that indicates that the Source will not be in STOPPED state once it reaches the end of last buffer in the buffer queue. |
void |
setMaxDistance(float maxDistance)
|
void |
setMaxTime(long ms)
|
void |
setMaxVolume(float maxVolume)
|
void |
setMinVolume(float minVolume)
|
void |
setPosition(float posX,
float posY,
float posZ)
|
void |
setPosition(org.openmali.vecmath2.Tuple3f position)
|
void |
setReferenceDistance(float refDistance)
REFERENCE_DISTANCE is the distance at which the Listener will experience GAIN (unless the implementation had to clamp effective GAIN to the available dynamic range). |
void |
setRelative(boolean relative)
SOURCE_RELATIVE set to TRUE indicates that the values specified by POSITION are to be interpreted relative to the listener position |
void |
setRolloffFactor(float factor)
Set to zero if this is an unattenuated sound, 1 would be normal otherwise |
void |
setVelocity(float veloX,
float veloY,
float veloZ)
|
void |
setVelocity(org.openmali.vecmath2.Tuple3f velocity)
|
void |
setVolume(float gain)
|
void |
stop()
|
int[] |
unqueueProcessedBuffers()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoundSourceImpl(SoundDriverImpl driver)
| Method Detail |
|---|
public void queueBuffer(SoundBuffer buffer)
SoundSourceFor a PLAYING or PAUSED Source, using the Source command with BUFFER is an INVALID_OPERATION. It can be applied to INITIAL and STOPPED Sources only. Specifying an invalid bufferName will result in an INVALID_VALUE error while specifying an invalid sourceName results in an INVALID_NAME error.
queueBuffer in interface SoundSourcepublic int[] unqueueProcessedBuffers()
public void setBuffer(SoundBuffer buffer)
public void setContainer(SoundContainer container)
SoundSource
setContainer in interface SoundSourcepublic void setVolume(float gain)
setVolume in interface SoundSourcepublic void play()
play in interface SoundSourcepublic void pause()
pause in interface SoundSourcepublic void rewind()
rewind in interface SoundSourcepublic void stop()
stop in interface SoundSourcepublic boolean isPlaying()
isPlaying in interface SoundSource
public void setPosition(float posX,
float posY,
float posZ)
setPosition in interface SoundSourcepublic void setPosition(org.openmali.vecmath2.Tuple3f position)
setPosition in interface SoundSource
public void setVelocity(float veloX,
float veloY,
float veloZ)
setVelocity in interface SoundSourcepublic void setVelocity(org.openmali.vecmath2.Tuple3f velocity)
setVelocity in interface SoundSource
public void setDirection(float dirX,
float dirY,
float dirZ)
SoundSource
setDirection in interface SoundSourcepublic void setDirection(org.openmali.vecmath2.Tuple3f direction)
SoundSource
setDirection in interface SoundSourcepublic SoundState getState()
getState in interface SoundSourcepublic void setReferenceDistance(float refDistance)
SoundSource
setReferenceDistance in interface SoundSourcepublic void setRolloffFactor(float factor)
setRolloffFactor in interface SoundSourcefactor - public void setRelative(boolean relative)
SoundSource
setRelative in interface SoundSourcepublic void setLoop(boolean loop)
SoundSource
setLoop in interface SoundSourcepublic void setMaxVolume(float maxVolume)
setMaxVolume in interface SoundSourcepublic void setMinVolume(float minVolume)
setMinVolume in interface SoundSourcepublic void setMaxDistance(float maxDistance)
setMaxDistance in interface SoundSourcepublic void setMaxTime(long ms)
setMaxTime in interface SoundSourcepublic SoundDriver getSoundDriver()
getSoundDriver in interface SoundSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||