Package com.jme3.audio.openal
Class ALAudioRenderer
java.lang.Object
com.jme3.audio.openal.ALAudioRenderer
- All Implemented Interfaces:
AudioRenderer,Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup/destroy the audio system.voidvoiddeleteFilter(Filter filter) floatvoidInitializes the renderer.voidpauseAll()Pauses all Playing audio.voidpauseSource(AudioSource src) voidplaySource(AudioSource src) voidvoidResumes all audio paused byAudioRenderer.pauseAll().voidrun()voidSets the environment, used for reverb effects.voidsetListener(Listener listener) voidstopSource(AudioSource src) voidupdate(float tpf) Update the audio system.voidupdateInDecoderThread(float tpf) voidupdateInRenderThread(float tpf) voidupdateListenerParam(Listener listener, ListenerParam param) voidupdateSourceParam(AudioSource src, AudioParam param)
-
Constructor Details
-
ALAudioRenderer
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:AudioRendererInitializes the renderer. Should be the first method called before using the system.- Specified by:
initializein interfaceAudioRenderer
-
run
public void run() -
cleanup
public void cleanup()Description copied from interface:AudioRendererCleanup/destroy the audio system. Call this when app closes.- Specified by:
cleanupin interfaceAudioRenderer
-
getSourcePlaybackTime
- Specified by:
getSourcePlaybackTimein interfaceAudioRenderer
-
updateSourceParam
- Specified by:
updateSourceParamin interfaceAudioRenderer
-
updateListenerParam
- Specified by:
updateListenerParamin interfaceAudioRenderer
-
setEnvironment
Description copied from interface:AudioRendererSets the environment, used for reverb effects.- Specified by:
setEnvironmentin interfaceAudioRenderer- Parameters:
env- The environment to set.- See Also:
-
update
public void update(float tpf) Description copied from interface:AudioRendererUpdate the audio system. Must be called periodically.- Specified by:
updatein interfaceAudioRenderer- Parameters:
tpf- Time per frame.
-
updateInRenderThread
public void updateInRenderThread(float tpf) -
updateInDecoderThread
public void updateInDecoderThread(float tpf) -
setListener
- Specified by:
setListenerin interfaceAudioRenderer- Parameters:
listener- The listener camera, all 3D sounds will be oriented around the listener.
-
pauseAll
public void pauseAll()Description copied from interface:AudioRendererPauses all Playing audio. To be used when the app is placed in the background.- Specified by:
pauseAllin interfaceAudioRenderer
-
resumeAll
public void resumeAll()Description copied from interface:AudioRendererResumes all audio paused byAudioRenderer.pauseAll(). To be used when the app is brought back to the foreground.- Specified by:
resumeAllin interfaceAudioRenderer
-
playSourceInstance
- Specified by:
playSourceInstancein interfaceAudioRenderer
-
playSource
- Specified by:
playSourcein interfaceAudioRenderer
-
pauseSource
- Specified by:
pauseSourcein interfaceAudioRenderer
-
stopSource
- Specified by:
stopSourcein interfaceAudioRenderer
-
deleteFilter
- Specified by:
deleteFilterin interfaceAudioRenderer
-
deleteAudioData
- Specified by:
deleteAudioDatain interfaceAudioRenderer
-