|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SoundDriver
Implementations of a sound driver must implement this interface. This represents the various capabilities of the sound system.
| Method Summary | |
|---|---|
SoundBuffer |
allocateSoundBuffer()
|
SoundSource |
allocateSoundSource()
|
void |
delete(SoundBuffer buffer)
|
void |
delete(SoundSource source)
|
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()
|
| Method Detail |
|---|
void newFrameSync()
void newFrameAsync()
void setListenerVelocity(org.openmali.vecmath2.Tuple3f velocity)
void setListenerPosition(org.openmali.vecmath2.Tuple3f position)
void setListenerOrientation(org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f up)
void setListenerVolume(float gain)
float getListenerVolume()
void setDopplerVelocity(float velocity)
float getDopplerVelocity()
void setDopplerFactor(float factor)
float getDopplerFactor()
SoundSource allocateSoundSource()
throws SoundException
SoundExceptionSoundBuffer allocateSoundBuffer()
void delete(SoundSource source)
void delete(SoundBuffer buffer)
int getNumAvailableSources()
int getNumSources()
void shutdown()
boolean isOnline()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||