|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.sound.drivers.joal.SoundDriverImpl
public class SoundDriverImpl
Sound Driver Implementation for JOAL (Java Open Audio Library, OpenAL binding).
| Constructor Summary | |
|---|---|
SoundDriverImpl()
|
|
| Method Summary | |
|---|---|
SoundBuffer |
allocateSoundBuffer()
|
SoundSource |
allocateSoundSource()
|
protected void |
checkError()
|
protected java.lang.String |
decodeSoundError(int error)
|
void |
delete(SoundBuffer buffer)
|
void |
delete(SoundSource source)
|
protected net.java.games.joal.AL |
getAL()
|
float |
getDopplerFactor()
|
float |
getDopplerVelocity()
|
float |
getListenerVolume()
|
int |
getNumAvailableSources()
|
int |
getNumSources()
|
boolean |
isOnline()
|
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)
|
void |
shutdown()
|
| 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 net.java.games.joal.AL getAL()
protected java.lang.String decodeSoundError(int error)
protected void checkError()
public void newFrameSync()
newFrameSync in interface SoundDriverpublic void newFrameAsync()
newFrameAsync in interface SoundDriverpublic void setListenerVelocity(org.openmali.vecmath2.Tuple3f velocity)
setListenerVelocity in interface SoundDriverpublic void setListenerPosition(org.openmali.vecmath2.Tuple3f position)
setListenerPosition in interface SoundDriver
public void setListenerOrientation(org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f up)
setListenerOrientation in interface SoundDriverpublic void setListenerVolume(float gain)
setListenerVolume in interface SoundDriverpublic float getListenerVolume()
getListenerVolume in interface SoundDriverpublic void setDopplerVelocity(float velocity)
setDopplerVelocity in interface SoundDriverpublic float getDopplerVelocity()
getDopplerVelocity in interface SoundDriverpublic void setDopplerFactor(float factor)
setDopplerFactor in interface SoundDriverpublic float getDopplerFactor()
getDopplerFactor in interface SoundDriver
public SoundSource allocateSoundSource()
throws SoundException
allocateSoundSource in interface SoundDriverSoundExceptionpublic SoundBuffer allocateSoundBuffer()
allocateSoundBuffer in interface SoundDriverpublic void delete(SoundSource source)
delete in interface SoundDriverpublic void delete(SoundBuffer buffer)
delete in interface SoundDriverpublic int getNumAvailableSources()
getNumAvailableSources in interface SoundDriverpublic int getNumSources()
getNumSources in interface SoundDriverpublic void shutdown()
shutdown in interface SoundDriverpublic final boolean isOnline()
isOnline in interface SoundDriver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||