Package com.jme3.audio
Class AudioListenerState
java.lang.Object
com.jme3.app.state.BaseAppState
com.jme3.audio.AudioListenerState
- All Implemented Interfaces:
- AppState
AudioListenerState updates the audio listener's position,
 orientation, and velocity from a Camera.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcleanup(Application app) Called after the app state is detached or during application shutdown if the state is still attached.protected voidinitialize(Application app) Called during initialization once the app state is attached and before onEnable() is called.protected voidCalled when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.protected voidonEnable()Called when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.voidrender(RenderManager rm) Render the state.voidupdate(float tpf) Called to update theAppState.Methods inherited from class com.jme3.app.state.BaseAppStatecleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, setEnabled, setId, stateAttached, stateDetached
- 
Constructor Details- 
AudioListenerStatepublic AudioListenerState()
 
- 
- 
Method Details- 
initializeDescription copied from class:BaseAppStateCalled during initialization once the app state is attached and before onEnable() is called.- Specified by:
- initializein class- BaseAppState
- Parameters:
- app- the application
 
- 
cleanupDescription copied from class:BaseAppStateCalled after the app state is detached or during application shutdown if the state is still attached. onDisable() is called before this cleanup() method if the state is enabled at the time of cleanup.- Specified by:
- cleanupin class- BaseAppState
- Parameters:
- app- the application
 
- 
updatepublic void update(float tpf) Description copied from interface:AppStateCalled to update theAppState. This method will be called every render pass if theAppStateis both attached and enabled.- Specified by:
- updatein interface- AppState
- Overrides:
- updatein class- BaseAppState
- Parameters:
- tpf- Time since the last call to update(), in seconds.
 
- 
renderDescription copied from interface:AppStateRender the state. This method will be called every render pass if theAppStateis both attached and enabled.- Specified by:
- renderin interface- AppState
- Overrides:
- renderin class- BaseAppState
- Parameters:
- rm- RenderManager
 
- 
onEnableprotected void onEnable()Description copied from class:BaseAppStateCalled when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.- Specified by:
- onEnablein class- BaseAppState
 
- 
onDisableprotected void onDisable()Description copied from class:BaseAppStateCalled when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.- Specified by:
- onDisablein class- BaseAppState
 
 
-