Package com.jme3.audio
Interface AudioRenderer
- All Known Implementing Classes:
ALAudioRenderer
public interface AudioRenderer
Interface to be implemented by audio renderers.
-
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 bypauseAll().voidSets the environment, used for reverb effects.voidsetListener(Listener listener) voidstopSource(AudioSource src) voidupdate(float tpf) Update the audio system.voidupdateListenerParam(Listener listener, ListenerParam param) voidupdateSourceParam(AudioSource src, AudioParam param)
-
Method Details
-
setListener
- Parameters:
listener- The listener camera, all 3D sounds will be oriented around the listener.
-
setEnvironment
Sets the environment, used for reverb effects.- Parameters:
env- The environment to set.- See Also:
-
playSourceInstance
-
playSource
-
pauseSource
-
stopSource
-
updateSourceParam
-
updateListenerParam
-
getSourcePlaybackTime
-
deleteFilter
-
deleteAudioData
-
initialize
void initialize()Initializes the renderer. Should be the first method called before using the system. -
update
void update(float tpf) Update the audio system. Must be called periodically.- Parameters:
tpf- Time per frame.
-
pauseAll
void pauseAll()Pauses all Playing audio. To be used when the app is placed in the background. -
resumeAll
void resumeAll()Resumes all audio paused bypauseAll(). To be used when the app is brought back to the foreground. -
cleanup
void cleanup()Cleanup/destroy the audio system. Call this when app closes.
-