class PointSoundRetained extends SoundRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) float[] |
attenuationDistance |
(package private) float[] |
attenuationGain |
(package private) Point3f |
position
Origin of Sound source in Listener's space.
|
(package private) Transform3D |
trans |
(package private) Point3f |
xformPosition
The transformed position of this sound
|
ALL_ATTIBS_DIRTY_BITS, ALL_STATE_DIRTY_BITS, ANGULAR_ATTENUATION_DIRTY_BIT, ATTRIBUTE_DIRTY_BITS, BACK_DISTANCE_GAIN_DIRTY_BIT, BOUNDING_LEAF_DIRTY_BIT, boundingLeaf, BOUNDS_CHANGED, BOUNDS_DIRTY_BIT, continuous, CONTINUOUS_DIRTY_BIT, debugFlag, DIRECTION_DIRTY_BIT, DIRECTIONAL_DIRTY_BITS, DISTANCE_GAIN_DIRTY_BIT, duration, enable, ENABLE_DIRTY_BIT, IMMEDIATE_MODE_DIRTY_BIT, inImmCtx, INITIAL_GAIN_DIRTY_BIT, initialGain, internalErrors, isViewScoped, key, LIVE_DIRTY_BIT, LOAD_COMPLETE, LOAD_FAILED, LOAD_NULL, LOAD_PENDING, LOAD_SOUND_DIRTY_BIT, loadStatus, LOOP_COUNT_DIRTY_BIT, loopCount, mirrorSounds, mute, MUTE_DIRTY_BIT, NULL_SOUND, numMirrorSounds, pause, PAUSE_DIRTY_BIT, POSITION_DIRTY_BIT, POSITIONAL_DIRTY_BITS, priority, PRIORITY_DIRTY_BIT, rate, RATE_DIRTY_BIT, release, RELEASE_DIRTY_BIT, schedulingRegion, sgSound, SOUND_DATA_DIRTY_BIT, soundData, soundType, targetThreads, transformedRegion, XFORM_DIRTY_BITboundsDirty, switchStateALTERNATEAPPEARANCE, AMBIENTLIGHT, apiBounds, BACKGROUND, BACKGROUNDSOUND, BEHAVIOR, BOUNDINGLEAF, boundsAutoCompute, BRANCHGROUP, branchGroupPaths, cachedBounds, childIndex, CLIP, collidable, CONESOUND, CONTAINS_VIEWPLATFORM, CURRENT_LOCAL_TO_VWORLD, DECALGROUP, DIRECTIONALLIGHT, EXPONENTIALFOG, geometryBackground, GROUP, inSharedGroup, LAST_LOCAL_TO_VWORLD, LINEARFOG, LINK, localBounds, locale, localToVworld, localToVworldIndex, localToVworldKeys, MODELCLIP, MORPH, nnuId, nodeId, nodeType, NUMNODES, ORDEREDGROUP, orderedId, ORIENTEDSHAPE3D, parent, parentSwitchLink, parentTransformLink, pickable, POINTLIGHT, POINTSOUND, refCount, SHAPE, SHAREDGROUP, SOUNDSCAPE, SPOTLIGHT, staticTransform, SWITCH, TRANSFORMGROUP, universe, validCachedBounds, VIEWPLATFORM, VIEWSPECIFICGROUPDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
PointSoundRetained() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
getDistanceGain(float[] distance,
float[] gain)
Retieves this sound's attenuation distance and gain arrays, returned in
separate arrays.
|
(package private) void |
getDistanceGain(Point2f[] attenuation)
Retieves sound's distance attenuation
Put the contents of the two separate distance and gain arrays into
an array of Point2f.
|
(package private) int |
getDistanceGainLength()
Gets this sound's distance attenuation array length
|
(package private) void |
getPosition(Point3f position)
Retrieves this sound's location and places it in the vector provided.
|
(package private) void |
getXformPosition(Point3f position) |
(package private) void |
initMirrorObject(PointSoundRetained ms) |
(package private) void |
mergeTransform(TransformGroupRetained xform) |
(package private) void |
setDistanceGain(float[] distance,
float[] gain)
Sets this sound's distance gain given separate arrays.
|
(package private) void |
setDistanceGain(Point2f[] attenuation)
Sets this sound's distance gain attenuation - where gain scale factor
is applied to sound based on distance listener is from sound source.
|
(package private) void |
setPosition(float x,
float y,
float z)
Sets this sound's position from the three values provided.
|
(package private) void |
setPosition(Point3f position)
Sets this sound's location from the vector provided.
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
This updates the positional fields of point sound.
|
(package private) void |
updateTransformChange() |
changeAtomList, clearLive, debugPrint, dispatchAttribChange, dispatchStateChange, getContinuousEnable, getDuration, getEnable, getInImmCtx, getInitialGain, getLoop, getMirrorObjects, getMirrorSound, getMute, getNumberOfChannelsUsed, getNumberOfChannelsUsed, getPause, getPriority, getRateScaleFactor, getReleaseEnable, getSchedulingBoundingLeaf, getSchedulingBounds, getSoundData, initMirrorObject, isPlaying, isPlaying, isPlayingSilently, isPlayingSilently, isReady, isReady, setContinuousEnable, setEnable, setInImmCtx, setInitialGain, setLive, setLoop, setMute, setPause, setPriority, setRateScaleFactor, setReleaseEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSoundData, setSoundDataState, updateBoundingLeafclone, updateBoundingLeaf, updateBoundscomputeCombineBounds, computeNonLiveLocalToVworld, dirtyBoundsCache, doSetLive, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBounds, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getEffectiveBounds, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, isStatic, merge, notifySceneGraphChanged, processViewSpecificInfo, recombineAbove, removeNodeData, searchGeometryAtoms, setAuxData, setBounds, setBoundsAutoCompute, setCollidable, setNodeData, setParent, setPickable, transformBounds, updateCollidable, updateLocalToVworld, updatePickableclearLive, clearLive, clone, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traversegetIdxUsed, incIdxUsedPoint3f position
Point3f xformPosition
Transform3D trans
float[] attenuationDistance
float[] attenuationGain
void setPosition(Point3f position)
position - the new locationvoid setPosition(float x,
float y,
float z)
x - the new x positiony - the new y positionz - the new z positionvoid getPosition(Point3f position)
position - the variable to receive the location vectorvoid getXformPosition(Point3f position)
void setDistanceGain(Point2f[] attenuation)
distance - attenuation pairs of (distance,gain-scale-factor)void setDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floats.gain - array of amplitude scale factors associated with distances.int getDistanceGainLength()
void getDistanceGain(Point2f[] attenuation)
attenuation - containing distance attenuation pairsvoid getDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floats.gain - array of amplitude scale factors associated with distances.void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class SoundRetainedvoid initMirrorObject(PointSoundRetained ms)
void updateTransformChange()
updateTransformChange in class SoundRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class SoundRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.