Package com.jme3.audio.openal
Class ALAudioRenderer
java.lang.Object
com.jme3.audio.openal.ALAudioRenderer
- All Implemented Interfaces:
AudioRenderer
,Runnable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Cleanup/destroy the audio system.void
void
deleteFilter
(Filter filter) float
void
Initializes the renderer.void
pauseAll()
Pauses all Playing audio.void
pauseSource
(AudioSource src) void
playSource
(AudioSource src) void
void
Resumes all audio paused byAudioRenderer.pauseAll()
.void
run()
void
Sets the environment, used for reverb effects.void
setListener
(Listener listener) void
stopSource
(AudioSource src) void
update
(float tpf) Update the audio system.void
updateInDecoderThread
(float tpf) void
updateInRenderThread
(float tpf) void
updateListenerParam
(Listener listener, ListenerParam param) void
updateSourceParam
(AudioSource src, AudioParam param)
-
Constructor Details
-
ALAudioRenderer
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:AudioRenderer
Initializes the renderer. Should be the first method called before using the system.- Specified by:
initialize
in interfaceAudioRenderer
-
run
public void run() -
cleanup
public void cleanup()Description copied from interface:AudioRenderer
Cleanup/destroy the audio system. Call this when app closes.- Specified by:
cleanup
in interfaceAudioRenderer
-
getSourcePlaybackTime
- Specified by:
getSourcePlaybackTime
in interfaceAudioRenderer
-
updateSourceParam
- Specified by:
updateSourceParam
in interfaceAudioRenderer
-
updateListenerParam
- Specified by:
updateListenerParam
in interfaceAudioRenderer
-
setEnvironment
Description copied from interface:AudioRenderer
Sets the environment, used for reverb effects.- Specified by:
setEnvironment
in interfaceAudioRenderer
- Parameters:
env
- The environment to set.- See Also:
-
update
public void update(float tpf) Description copied from interface:AudioRenderer
Update the audio system. Must be called periodically.- Specified by:
update
in interfaceAudioRenderer
- Parameters:
tpf
- Time per frame.
-
updateInRenderThread
public void updateInRenderThread(float tpf) -
updateInDecoderThread
public void updateInDecoderThread(float tpf) -
setListener
- Specified by:
setListener
in interfaceAudioRenderer
- Parameters:
listener
- The listener camera, all 3D sounds will be oriented around the listener.
-
pauseAll
public void pauseAll()Description copied from interface:AudioRenderer
Pauses all Playing audio. To be used when the app is placed in the background.- Specified by:
pauseAll
in interfaceAudioRenderer
-
resumeAll
public void resumeAll()Description copied from interface:AudioRenderer
Resumes all audio paused byAudioRenderer.pauseAll()
. To be used when the app is brought back to the foreground.- Specified by:
resumeAll
in interfaceAudioRenderer
-
playSourceInstance
- Specified by:
playSourceInstance
in interfaceAudioRenderer
-
playSource
- Specified by:
playSource
in interfaceAudioRenderer
-
pauseSource
- Specified by:
pauseSource
in interfaceAudioRenderer
-
stopSource
- Specified by:
stopSource
in interfaceAudioRenderer
-
deleteFilter
- Specified by:
deleteFilter
in interfaceAudioRenderer
-
deleteAudioData
- Specified by:
deleteAudioData
in interfaceAudioRenderer
-