public class AudioPlayer extends AudioContainer implements IAudioItem, IAudioPlayer
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
CACHABLE_TYPE
KEY_JMEITEMDATA
Constructor and Description |
---|
AudioPlayer(java.lang.String name,
java.util.UUID uuid)
Instantiates a new audio player.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height.
|
java.lang.String |
getOwner()
Gets the owner.
|
int |
getWidth()
Gets the width.
|
boolean |
isPlaying()
Checks if is playing.
|
void |
makeImmovable()
Make immovable.
|
void |
makeMovable()
Make movable.
|
void |
setAudioControlObject(SNAudioController audioControl)
Sets the audio control object.
|
void |
setAudioRecording(java.io.File recordingFile)
Sets the audio recording.
|
void |
setAudioRecording(java.io.File recordingFile,
java.lang.String audioLocation)
Sets the audio recording.
|
void |
setAudioRecording(java.lang.String fileName)
Sets the audio recording.
|
void |
setBackgroundColour(com.jme3.math.ColorRGBA colour)
Sets the background colour.
|
void |
setOwner(java.lang.String owner)
Sets the owner.
|
void |
stopPlay()
Stop play.
|
void |
stopRecord(boolean success)
Stop record.
|
deconstruct, getAudioController, isCached, reconstruct, setAudioController, setCached
getManipulableSpatial, initializeGeometry
addItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toString
attachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, write
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
initializeGeometry
public AudioPlayer(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic int getHeight()
IAudioItem
getHeight
in interface IAudioPlayer
getHeight
in interface IAudioItem
public java.lang.String getOwner()
IAudioItem
getOwner
in interface IAudioItem
public int getWidth()
IAudioItem
getWidth
in interface IAudioPlayer
getWidth
in interface IAudioItem
public boolean isPlaying()
public void makeImmovable()
IAudioItem
makeImmovable
in interface IAudioItem
public void makeMovable()
IAudioPlayer
makeMovable
in interface IAudioPlayer
public void setAudioControlObject(SNAudioController audioControl)
IAudioItem
setAudioControlObject
in interface IAudioItem
audioControl
- the new audio control objectpublic void setAudioRecording(java.io.File recordingFile)
IAudioPlayer
setAudioRecording
in interface IAudioPlayer
recordingFile
- the new audio recordingpublic void setAudioRecording(java.io.File recordingFile, java.lang.String audioLocation)
recordingFile
- the recording fileaudioLocation
- the audio locationpublic void setAudioRecording(java.lang.String fileName)
fileName
- the new audio recordingpublic void setBackgroundColour(com.jme3.math.ColorRGBA colour)
IAudioItem
setBackgroundColour
in interface IAudioItem
colour
- the new background colourpublic void setOwner(java.lang.String owner)
IAudioItem
setOwner
in interface IAudioItem
owner
- the new ownerpublic void stopPlay()
IAudioItem
stopPlay
in interface IAudioItem
public void stopRecord(boolean success)
IAudioItem
stopRecord
in interface IAudioItem
success
- the success