|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.AuralAttributesRetained
class AuralAttributesRetained
The AuralAttributesRetained object defines all rendering state that can be set as a component object of a retained Soundscape node.
Field Summary | |
---|---|
(package private) boolean |
aaDirty
This boolean is set when something changes in the attributes |
(package private) float |
attributeGain
Gain Scale Factor applied to source with this attribute |
(package private) static boolean |
debugFlag
Debug print mechanism for Sound nodes |
(package private) float |
decayFilter
|
(package private) float |
decayTime
Decay parameters Length and timbre of reverb decay tail |
(package private) float |
density
|
(package private) float |
diffusion
Reverb Diffusion and Density ratios (0=min, 1=max) |
(package private) float[] |
distance
|
(package private) int |
filterType
|
(package private) float[] |
frequencyCutoff
|
(package private) float |
frequencyScaleFactor
Frequency Scale Factor used to increase or reduce the change of frequency associated with normal rate of playback. |
(package private) static boolean |
internalErrors
|
(package private) static int |
LOW_PASS
|
(package private) AuralAttributesRetained |
mirrorAa
The mirror copy of this AuralAttributes. |
(package private) static int |
NO_FILTERING
Distance Filter Each sound source is attenuated by a filter based on it's distance from the listener. |
(package private) float |
reflectionCoefficient
Coefficients for reverberation The (early) Reflection and Reverberation coefficient scale factors are used to approximate the reflective/absorptive characteristics of the surfaces in this bounded Auralizaton environment. |
(package private) float |
reflectionDelay
Time Delays in milliseconds Set with either explicitly with time, or impliciticly by supplying bounds volume and having the delay time calculated. |
(package private) Bounds |
reverbBounds
|
(package private) float |
reverbCoefficient
|
(package private) float |
reverbDelay
|
(package private) int |
reverbOrder
Reverberation order This limits the number of Reverberation iterations executed while sound is being reverberated. |
(package private) float |
rolloff
Atmospheric Rolloff - speed of sound - coeff Normal gain attenuation based on distance of sound from listener is scaled by a rolloff factor, which can increase or decrease the usual inverse-distance-square value. |
(package private) static float |
SPEED_OF_SOUND
|
(package private) float |
velocityScaleFactor
Velocity Scale Factor Float value applied to the Change of distance between Sound Source and Listener over some delta time. |
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
AuralAttributesRetained()
|
Method Summary | |
---|---|
(package private) void |
debugPrint(java.lang.String message)
|
(package private) float |
getAttributeGain()
Retrieve Attribute Gain (amplitude) |
(package private) float |
getDecayFilter()
Retrieve Revereration Decay Filter |
(package private) float |
getDecayTime()
Retrieve Revereration Decay Time |
(package private) float |
getDensity()
Retrieve Revereration Density |
(package private) float |
getDiffusion()
Retrieve Revereration Decay Diffusion |
(package private) void |
getDistanceFilter(float[] distance,
float[] filter)
Retrieve Distance Filter as arrays distances and frequency cutoff array |
(package private) void |
getDistanceFilter(Point2f[] attenuation)
Retrieve Distance Filter (distances and frequency cutoff) |
(package private) int |
getDistanceFilterLength()
Retrieve Distance Filter array length |
(package private) float |
getFrequencyScaleFactor()
Retrieve Frequency Scale Factor |
(package private) float |
getReflectionCoefficient()
Retrieve Reflective Coefficient |
(package private) float |
getReflectionDelay()
Retrieve Reflection Delay Time |
(package private) Bounds |
getReverbBounds()
Retrieve Revereration Delay Bounds volume |
(package private) float |
getReverbCoefficient()
Retrieve Reverb Coefficient |
(package private) float |
getReverbDelay()
Retrieve Revereration Delay Time |
(package private) int |
getReverbOrder()
Retrieve Reverberation Order of Reflections |
(package private) float |
getRolloff()
Retrieve Attribute Gain Rolloff |
(package private) float |
getVelocityScaleFactor()
Retrieve Velocity ScaleFactor used in calculating Doppler Effect |
(package private) void |
reset(AuralAttributesRetained aa)
|
(package private) void |
setAttributeGain(float gain)
Set Attribute Gain (amplitude) |
(package private) void |
setDecayFilter(float decayFilter)
Set Decay Filter |
(package private) void |
setDecayTime(float decayTime)
Set Decay Time |
(package private) void |
setDensity(float density)
Set Reverb Density |
(package private) void |
setDiffusion(float diffusion)
Set Reverb Diffusion |
(package private) void |
setDistanceFilter(float[] distance,
float[] filter)
Set Distance Filter (based on distances and frequency cutoff) using separate arrays |
(package private) void |
setDistanceFilter(Point2f[] attenuation)
Set Distance Filter (based on distances and frequency cutoff) |
(package private) void |
setFrequencyScaleFactor(float frequencyScaleFactor)
Set Frequency Scale Factor |
(package private) void |
setReflectionCoefficient(float reflectionCoefficient)
Set Reflective Coefficient |
(package private) void |
setReflectionDelay(float reflectionDelay)
Set Reflection Delay Time |
(package private) void |
setReverbBounds(Bounds reverbVolume)
Set Revereration Bounds |
(package private) void |
setReverbCoefficient(float reverbCoefficient)
Set Reverb Coefficient |
(package private) void |
setReverbDelay(float reverbDelay)
Set Revereration Delay Time |
(package private) void |
setReverbOrder(int reverbOrder)
Set Reverberation Order of Reflections |
(package private) void |
setRolloff(float rolloff)
Set Attribute Gain Rolloff |
(package private) void |
setVelocityScaleFactor(float velocityScaleFactor)
Set Velocity ScaleFactor used in calculating Doppler Effect |
(package private) void |
update(AuralAttributesRetained aa)
|
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, createMirrorObject, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float attributeGain
float rolloff
static final float SPEED_OF_SOUND
float reflectionCoefficient
float reverbCoefficient
float reflectionDelay
float reverbDelay
Bounds reverbBounds
float decayTime
float decayFilter
float diffusion
float density
int reverbOrder
static final int NO_FILTERING
static final int LOW_PASS
int filterType
float[] distance
float[] frequencyCutoff
float frequencyScaleFactor
float velocityScaleFactor
boolean aaDirty
AuralAttributesRetained mirrorAa
static final boolean debugFlag
static final boolean internalErrors
Constructor Detail |
---|
AuralAttributesRetained()
Method Detail |
---|
void debugPrint(java.lang.String message)
void setAttributeGain(float gain)
gain
- scale factor applied to amplitudefloat getAttributeGain()
void setRolloff(float rolloff)
rolloff
- atmospheric gain scale factor (changing speed of sound)float getRolloff()
void setReflectionCoefficient(float reflectionCoefficient)
reflectionCoefficient
- reflection/absorption factor applied to
early reflections.float getReflectionCoefficient()
void setReflectionDelay(float reflectionDelay)
reflectionDelay
- time before the start of early (first order)
reflections.float getReflectionDelay()
void setReverbCoefficient(float reverbCoefficient)
reverbCoefficient
- reflection/absorption factor applied to
late reflections.float getReverbCoefficient()
void setReverbDelay(float reverbDelay)
reverbDelay
- time between each order of reflectionfloat getReverbDelay()
void setDecayTime(float decayTime)
decayTime
- length of time reverb takes to decayfloat getDecayTime()
void setDecayFilter(float decayFilter)
decayFilter
- frequency referenced used in low-pass filteringfloat getDecayFilter()
void setDiffusion(float diffusion)
diffusion
- ratio between min and max device diffusion settingsfloat getDiffusion()
void setDensity(float density)
density
- ratio between min and max device density settingsfloat getDensity()
void setReverbBounds(Bounds reverbVolume)
reverbVolume
- bounds used to approximate reverb time.Bounds getReverbBounds()
void setReverbOrder(int reverbOrder)
reverbOrder
- number of times reflections added to reverb signalint getReverbOrder()
void setDistanceFilter(Point2f[] attenuation)
attenuation
- array of pairs defining distance frequency cutoffvoid setDistanceFilter(float[] distance, float[] filter)
distance
- array containing distance valuesfilter
- array containing low-pass frequency cutoff valuesint getDistanceFilterLength()
void getDistanceFilter(Point2f[] attenuation)
void getDistanceFilter(float[] distance, float[] filter)
distance
- array of float valuesfrequencyCutoff
- array of float cutoff filter values in Hertzvoid setFrequencyScaleFactor(float frequencyScaleFactor)
frequencyScaleFactor
- factor applied to sound's base frequencyfloat getFrequencyScaleFactor()
void setVelocityScaleFactor(float velocityScaleFactor)
velocityScaleFactor
- applied to velocity of sound in relation to listenerfloat getVelocityScaleFactor()
void reset(AuralAttributesRetained aa)
void update(AuralAttributesRetained aa)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |