public class AudioPlayer extends AudioContainer implements IAudioItem, IAudioPlayer
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerCACHABLE_TYPEKEY_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, setCachedgetManipulableSpatial, initializeGeometryaddItem, 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, toStringattachChild, 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, writeaddControl, 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, worldToLocalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemListener, 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, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeIteminitializeGeometrypublic AudioPlayer(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic int getHeight()
IAudioItemgetHeight in interface IAudioPlayergetHeight in interface IAudioItempublic java.lang.String getOwner()
IAudioItemgetOwner in interface IAudioItempublic int getWidth()
IAudioItemgetWidth in interface IAudioPlayergetWidth in interface IAudioItempublic boolean isPlaying()
public void makeImmovable()
IAudioItemmakeImmovable in interface IAudioItempublic void makeMovable()
IAudioPlayermakeMovable in interface IAudioPlayerpublic void setAudioControlObject(SNAudioController audioControl)
IAudioItemsetAudioControlObject in interface IAudioItemaudioControl - the new audio control objectpublic void setAudioRecording(java.io.File recordingFile)
IAudioPlayersetAudioRecording in interface IAudioPlayerrecordingFile - 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)
IAudioItemsetBackgroundColour in interface IAudioItemcolour - the new background colourpublic void setOwner(java.lang.String owner)
IAudioItemsetOwner in interface IAudioItemowner - the new ownerpublic void stopPlay()
IAudioItemstopPlay in interface IAudioItempublic void stopRecord(boolean success)
IAudioItemstopRecord in interface IAudioItemsuccess - the success