|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jme3.audio.lwjgl.LwjglAudioRenderer com.aurellem.capture.audio.AudioSendRenderer
public class AudioSendRenderer
Field Summary | |
---|---|
java.util.Vector<com.jme3.audio.Listener> |
listeners
Keeps track of all the listeners which have been registered so far. |
static int |
MIN_FRAMERATE
|
java.util.HashMap<com.jme3.audio.Listener,SoundProcessor> |
soundProcessorMap
Each listener (including the main LWJGL listener) can be registered with a SoundProcessor , which this Renderer will call whenever
there is new audio data to be processed. |
Constructor Summary | |
---|---|
AudioSendRenderer()
|
Method Summary | |
---|---|
void |
addListener(com.jme3.audio.Listener l)
Create a new slave context on the recorder device which will render all the sounds in the main LWJGL context with respect to this listener. |
void |
cleanup()
|
void |
dispatchAudio(float tpf)
|
void |
initialize()
|
void |
initInThread()
Instead of taking whatever device is available on the system, this call creates the "Multiple Audio Send" device, which supports multiple listeners in a limited capacity. |
void |
registerSoundProcessor(com.jme3.audio.Listener l,
SoundProcessor sp)
Whenever new data is rendered in the perspective of this listener, this Renderer will send that data to the SoundProcessor of your choosing. |
void |
registerSoundProcessor(SoundProcessor sp)
Registers a SoundProcessor for the main LWJGL context. |
void |
update(float tpf)
|
void |
updateAllListeners()
|
Methods inherited from class com.jme3.audio.lwjgl.LwjglAudioRenderer |
---|
cleanupInThread, deleteAudioData, deleteFilter, pauseSource, playSource, playSourceInstance, run, setEnvironment, setListener, stopSource, updateInThread, updateListenerParam, updateSourceParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Vector<com.jme3.audio.Listener> listeners
null
, which represents the zeroth
LWJGL listener which is created automatically.
public java.util.HashMap<com.jme3.audio.Listener,SoundProcessor> soundProcessorMap
SoundProcessor
, which this Renderer will call whenever
there is new audio data to be processed.
public static final int MIN_FRAMERATE
Constructor Detail |
---|
public AudioSendRenderer()
Method Detail |
---|
public void initialize()
initialize
in interface com.jme3.audio.AudioRenderer
initialize
in class com.jme3.audio.lwjgl.LwjglAudioRenderer
public void addListener(com.jme3.audio.Listener l)
addListener
in interface MultiListener
public void registerSoundProcessor(com.jme3.audio.Listener l, SoundProcessor sp)
registerSoundProcessor
in interface MultiListener
public void registerSoundProcessor(SoundProcessor sp)
registerSoundProcessor
in interface MultiListener
public void initInThread()
initInThread
in class com.jme3.audio.lwjgl.LwjglAudioRenderer
public void cleanup()
cleanup
in interface com.jme3.audio.AudioRenderer
cleanup
in class com.jme3.audio.lwjgl.LwjglAudioRenderer
public void updateAllListeners()
public void dispatchAudio(float tpf)
public void update(float tpf)
update
in interface com.jme3.audio.AudioRenderer
update
in class com.jme3.audio.lwjgl.LwjglAudioRenderer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |