|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.sound.SoundDriver
org.xith3d.sound.drivers.lwjgl.SoundDriverImpl
public class SoundDriverImpl
Sound Driver Implementation for LWJGL OpenAL.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.sound.SoundDriver |
|---|
availableSources, buffers, sources |
| Constructor Summary | |
|---|---|
SoundDriverImpl()
|
|
| Method Summary | |
|---|---|
SoundBuffer |
allocateSoundBuffer()
|
protected void |
checkError()
|
protected SoundSource |
createSoundSource()
|
protected java.lang.String |
decodeSoundError(int error)
|
boolean |
delete(SoundSource source)
|
protected void |
initSoundDevice()
|
void |
newFrameAsync()
Call this method once a frame to check and possibly load the next buffer from all the streaming sources, as well as dequeue all processed buffers. |
void |
newFrameSync()
Call this method once a frame to check and possibly load the next buffer from all the streaming sources, as well as dequeue all processed buffers. |
void |
setDopplerFactor(float factor)
|
void |
setDopplerVelocity(float velocity)
|
void |
setListenerOrientation(org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f up)
|
void |
setListenerPosition(org.openmali.vecmath2.Tuple3f position)
|
void |
setListenerVelocity(org.openmali.vecmath2.Tuple3f velocity)
|
void |
setListenerVolume(float gain)
|
protected void |
shutdownImpl()
|
protected void |
startImpl()
|
| Methods inherited from class org.xith3d.sound.SoundDriver |
|---|
allocateSoundSource, delete, getDopplerFactor, getDopplerVelocity, getListenerVolume, getNumActiveSources, getNumAvailableSources, getNumSources, isOnline, setOnline, shutdown, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoundDriverImpl()
| Method Detail |
|---|
protected java.lang.String decodeSoundError(int error)
protected void checkError()
protected void startImpl()
startImpl in class SoundDriverpublic void newFrameSync()
newFrameSync in class SoundDriverpublic void newFrameAsync()
newFrameAsync in class SoundDriverpublic void setListenerVelocity(org.openmali.vecmath2.Tuple3f velocity)
setListenerVelocity in class SoundDriverpublic void setListenerPosition(org.openmali.vecmath2.Tuple3f position)
setListenerPosition in class SoundDriver
public void setListenerOrientation(org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f up)
setListenerOrientation in class SoundDriverpublic void setListenerVolume(float gain)
setListenerVolume in class SoundDriverpublic void setDopplerVelocity(float velocity)
setDopplerVelocity in class SoundDriverpublic void setDopplerFactor(float factor)
setDopplerFactor in class SoundDriverprotected SoundSource createSoundSource()
createSoundSource in class SoundDriverpublic SoundBuffer allocateSoundBuffer()
allocateSoundBuffer in class SoundDriverpublic boolean delete(SoundSource source)
delete in class SoundDrivertrue, if the source was part of this driver, false otherwise.protected void shutdownImpl()
shutdownImpl in class SoundDriverprotected void initSoundDevice()
initSoundDevice in class SoundDriver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||