|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.audioengines.Sample
public class Sample
The Sample class defines the data and methods associated with a sound sample played through the AudioDevice. This contains all the data fields for non-spatialized and spatialized (positional and directional) sound samples.
Field Summary | |
---|---|
protected double[] |
angularDistance
Directional Sound's gain can be attenuated based on the listener's location off-angle from the source source direction. |
protected float[] |
angularFilterCutoff
|
protected int |
angularFilterType
|
protected float[] |
angularGain
|
protected double[] |
attenuationDistance
|
protected float[] |
attenuationGain
|
protected double[] |
backAttenuationDistance
Pairs of distances and gain scale factors that define piecewise linear gain BACK attenuation between each pair. |
protected float[] |
backAttenuationGain
|
protected static boolean |
debugFlag
|
protected Vector3f |
direction
The Cone Sound's direction vector. |
protected int |
dirtyFlags
dirty flags denoting what has changed since last rendering |
protected long |
duration
|
static int |
DURATION_UNKNOWN
|
protected float |
gain
Overall Scale Factor applied to sound gain. |
protected static boolean |
internalErrors
|
protected int |
loopCount
Number of times sound is looped/repeated during play |
static int |
LOW_PASS
|
protected boolean |
mute
|
static int |
NO_FILTERING
Distance Filter Each sound source is attenuated by a filter based on it's distance from the listener. |
static int |
NULL_SAMPLE
Null Sound identifier denotes sound is not created or initialized |
protected int |
numberOfChannels
|
protected float |
obstructionFilterCutoff
|
protected int |
obstructionFilterType
|
protected float |
obstructionGain
|
protected float |
occlusionFilterCutoff
|
protected int |
occlusionFilterType
|
protected float |
occlusionGain
|
protected Point3f |
position
|
protected float |
rateScaleFactor
Overall Scale Factor applied to sound. |
protected MediaContainer |
soundData
sound data associated with sound source |
protected int |
soundType
sound data associated with sound source |
protected Transform3D |
vworldXfrm
|
protected boolean |
vwXfrmFlag
|
Constructor Summary | |
---|---|
Sample()
|
Method Summary | |
---|---|
void |
clear()
Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data associated with this sample. |
protected void |
debugPrint(java.lang.String message)
|
protected void |
debugPrintln(java.lang.String message)
|
int |
getDirtyFlags()
|
long |
getDuration()
|
float |
getGain()
|
int |
getLoopCount()
|
boolean |
getMuteFlag()
|
int |
getNumberOfChannelsUsed()
|
float |
getObstructionGain()
|
float |
getOcclusionGain()
|
float |
getRateScaleFactor()
|
MediaContainer |
getSoundData()
|
int |
getSoundType()
|
long |
getStartTime()
|
boolean |
getVWrldXfrmFlag()
|
void |
render(int dirtyFlags,
View view,
AuralParameters attribs)
|
void |
setAngularAttenuation(int filterType,
double[] angle,
float[] attenuationScaleFactor,
float[] filterCutoff)
|
void |
setDirection(Vector3d direction)
|
void |
setDirtyFlags(int flags)
|
void |
setDistanceGain(double[] frontDistance,
float[] frontAttenuationScaleFactor,
double[] backDistance,
float[] backAttenuationScaleFactor)
|
void |
setGain(float scaleFactor)
|
void |
setLoopCount(int count)
|
void |
setMuteFlag(boolean flag)
|
void |
setObstructionFilter(float cutoffFrequency)
|
void |
setObstructionGain(float scaleFactor)
|
void |
setOcclusionFilter(float cutoffFrequency)
|
void |
setOcclusionGain(float scaleFactor)
|
void |
setPosition(Point3d position)
|
void |
setRateScaleFactor(float scaleFactor)
|
void |
setSoundData(MediaContainer ref)
|
void |
setSoundType(int type)
|
void |
setVWrldXfrmFlag(boolean flag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean debugFlag
protected static final boolean internalErrors
public static final int NULL_SAMPLE
protected MediaContainer soundData
protected int soundType
protected float gain
protected float rateScaleFactor
protected int loopCount
public static final int DURATION_UNKNOWN
protected long duration
protected int numberOfChannels
protected boolean mute
protected Transform3D vworldXfrm
protected boolean vwXfrmFlag
protected Point3f position
protected double[] attenuationDistance
protected float[] attenuationGain
protected int dirtyFlags
protected Vector3f direction
protected double[] backAttenuationDistance
protected float[] backAttenuationGain
protected double[] angularDistance
protected float[] angularGain
public static final int NO_FILTERING
public static final int LOW_PASS
protected int angularFilterType
protected float[] angularFilterCutoff
protected float obstructionGain
protected int obstructionFilterType
protected float obstructionFilterCutoff
protected float occlusionGain
protected int occlusionFilterType
protected float occlusionFilterCutoff
Constructor Detail |
---|
public Sample()
Method Detail |
---|
protected void debugPrint(java.lang.String message)
protected void debugPrintln(java.lang.String message)
public long getDuration()
public long getStartTime()
public int getNumberOfChannelsUsed()
public void setDirtyFlags(int flags)
public int getDirtyFlags()
public void setSoundType(int type)
public int getSoundType()
public void setSoundData(MediaContainer ref)
public MediaContainer getSoundData()
public void setMuteFlag(boolean flag)
public boolean getMuteFlag()
public void setVWrldXfrmFlag(boolean flag)
public boolean getVWrldXfrmFlag()
public void setGain(float scaleFactor)
public float getGain()
public void setLoopCount(int count)
public int getLoopCount()
public void setPosition(Point3d position)
public void setDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)
public void setDirection(Vector3d direction)
public void setAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)
public void setRateScaleFactor(float scaleFactor)
public float getRateScaleFactor()
public void setObstructionGain(float scaleFactor)
public float getObstructionGain()
public void setObstructionFilter(float cutoffFrequency)
public void setOcclusionGain(float scaleFactor)
public float getOcclusionGain()
public void setOcclusionFilter(float cutoffFrequency)
public void clear()
public void render(int dirtyFlags, View view, AuralParameters attribs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |