class ConeSoundRetained extends PointSoundRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) float[] |
angularDistance |
(package private) float[] |
angularGain |
(package private) float[] |
backAttenuationDistance |
(package private) float[] |
backAttenuationGain |
(package private) Vector3f |
direction
The Cone Sound's direction vector.
|
(package private) int |
filterType |
(package private) float[] |
frequencyCutoff |
(package private) static int |
LOW_PASS |
(package private) static int |
NO_FILTERING |
(package private) Vector3f |
xformDirection |
attenuationDistance, attenuationGain, position, trans, xformPositionALL_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 |
|---|
ConeSoundRetained() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
getAngularAttenuation(float[] distance,
float[] gain,
float[] filter)
Retrieves angular attenuation including gain and filter
returned as separate arrays
|
(package private) void |
getAngularAttenuation(Point3f[] attenuation)
Retrieves angular attenuation including gain and filter in a single array
|
(package private) int |
getAngularAttenuationLength()
Retrieves angular attenuation array length.
|
(package private) void |
getBackDistanceGain(float[] distance,
float[] gain)
Retieves this sound's back attenuation distance and gain arrays,
returned in separate arrays.
|
(package private) void |
getBackDistanceGain(Point2f[] attenuation)
Retieves sound's back distance attenuation
Put the contents of the two separate distance and gain arrays into
an array of Point2f.
|
(package private) void |
getDirection(Vector3f direction)
Retrieves this sound's direction and places it in the
vector provided.
|
(package private) void |
getDistanceGain(float[] frontDistance,
float[] frontGain,
float[] backDistance,
float[] backGain)
Gets this sound's elliptical distance gain attenuation values in separate arrays
|
(package private) void |
getDistanceGain(Point2f[] frontAttenuation,
Point2f[] backAttenuation)
Gets this sound's elliptical distance attenuation
|
(package private) void |
getXformDirection(Vector3f direction) |
(package private) void |
initMirrorObject(ConeSoundRetained ms) |
(package private) void |
mergeTransform(TransformGroupRetained xform) |
(package private) void |
setAngularAttenuation(float[] distance,
float[] gain,
float[] filter)
Sets angular attenuation including gain and filter using separate arrays
|
(package private) void |
setAngularAttenuation(Point2f[] attenuation)
Sets this sound's angular gain attenuation (not including filter)
|
(package private) void |
setAngularAttenuation(Point3f[] attenuation)
Sets this sound's angular attenuation including both gain and filter.
|
(package private) void |
setBackDistanceGain(float[] distance,
float[] gain)
Sets this sound's back distance gain attenuation as an array of Point2fs.
|
(package private) void |
setBackDistanceGain(Point2f[] attenuation)
Sets this sound's back distance gain attenuation - where gain scale
factor is applied to sound based on distance listener along the negative
sound direction axis from sound source.
|
(package private) void |
setDirection(float x,
float y,
float z)
Sets this sound's direction from the three values provided.
|
(package private) void |
setDirection(Vector3f direction)
Sets this sound's direction from the vector provided.
|
(package private) void |
setDistanceGain(float[] frontDistance,
float[] frontGain,
float[] backDistance,
float[] backGain)
Sets this sound's distance gain attenuation as an array of Point2fs.
|
(package private) void |
setDistanceGain(Point2f[] frontAttenuation,
Point2f[] backAttenuation)
Sets this sound's distance gain elliptical attenuation -
where gain scale factor is applied to sound based on distance listener
is from sound source.
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
This updates the Direction fields of cone sound.
|
(package private) void |
updateTransformChange() |
getDistanceGain, getDistanceGain, getDistanceGainLength, getPosition, getXformPosition, initMirrorObject, setDistanceGain, setDistanceGain, setPosition, setPositionchangeAtomList, 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, incIdxUsedVector3f direction
Vector3f xformDirection
static final int NO_FILTERING
static final int LOW_PASS
float[] backAttenuationDistance
float[] backAttenuationGain
float[] angularDistance
float[] angularGain
int filterType
float[] frequencyCutoff
void setDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation)
frontAttenuation - defined by pairs of (distance,gain-scale-factor)backAttenuation - defined by pairs of (distance,gain-scale-factor)CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid setDistanceGain(float[] frontDistance,
float[] frontGain,
float[] backDistance,
float[] backGain)
frontDistance - array of monotonically-increasing floatsfrontGain - array of non-negative scale factorsbackDistance - array of monotonically-increasing floatsbackGain - array of non-negative scale factorsCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid setBackDistanceGain(Point2f[] attenuation)
attenuation - defined by pairs of (distance,gain-scale-factor)CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid setBackDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floatsgain - array of non-negative scale factorsCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid getDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation)
frontAttenuation - arrays containing forward distances attenuation pairsbackAttenuation - arrays containing backward distances attenuation pairsCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid getDistanceGain(float[] frontDistance,
float[] frontGain,
float[] backDistance,
float[] backGain)
frontDistance - array of float distances along the sound axisfronGain - array of non-negative scale factors associated with front distancesbackDistance - array of float negative distances along the sound axisbackGain - array of non-negative scale factors associated with back distancesCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid getBackDistanceGain(Point2f[] attenuation)
attenuation - containing distance attenuation pairsvoid getBackDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floats.gain - array of amplitude scale factors associated with distances.void setDirection(Vector3f direction)
direction - the new directionvoid setDirection(float x,
float y,
float z)
x - the new x directiony - the new y directionz - the new z directionvoid getDirection(Vector3f direction)
void getXformDirection(Vector3f direction)
void setAngularAttenuation(Point2f[] attenuation)
attenuation - array containing angular distance and gainvoid setAngularAttenuation(Point3f[] attenuation)
attenuation - array containing angular distance, gain and filtervoid setAngularAttenuation(float[] distance,
float[] gain,
float[] filter)
distance - array containing angular distancefilter - array containing angular low-pass frequency cutoff valuesint getAngularAttenuationLength()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphvoid getAngularAttenuation(Point3f[] attenuation)
attenuation - applied to gain when listener is between conesvoid getAngularAttenuation(float[] distance,
float[] gain,
float[] filter)
distance - array containing angular distancegain - array containing angular gain attenuationfilter - array containing angular low-pass frequency cutoff valuesvoid updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class PointSoundRetainedvoid initMirrorObject(ConeSoundRetained ms)
void updateTransformChange()
updateTransformChange in class PointSoundRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class PointSoundRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.