Package com.jme3.audio
Interface AudioRenderer
- All Known Implementing Classes:
- ALAudioRenderer
public interface AudioRenderer
Interface to be implemented by audio renderers.
- 
Method SummaryModifier 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.
 
- 
setEnvironmentSets the environment, used for reverb effects.- Parameters:
- env- The environment to set.
- See Also:
 
- 
playSourceInstance
- 
playSource
- 
pauseSource
- 
stopSource
- 
updateSourceParam
- 
updateListenerParam
- 
getSourcePlaybackTime
- 
deleteFilter
- 
deleteAudioData
- 
initializevoid initialize()Initializes the renderer. Should be the first method called before using the system.
- 
updatevoid update(float tpf) Update the audio system. Must be called periodically.- Parameters:
- tpf- Time per frame.
 
- 
pauseAllvoid pauseAll()Pauses all Playing audio. To be used when the app is placed in the background.
- 
resumeAllvoid resumeAll()Resumes all audio paused bypauseAll(). To be used when the app is brought back to the foreground.
- 
cleanupvoid cleanup()Cleanup/destroy the audio system. Call this when app closes.
 
-