| |
|
| java.lang.Object com.sun.j3d.audioengines.Sample
All known Subclasses: com.sun.j3d.audioengines.javasound.JSSample, org.jdesktop.j3d.audioengines.joal.JOALSample,
Sample | public class Sample (Code) | | 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.
|
Constructor Summary | |
public | Sample() |
DURATION_UNKNOWN | final public static int DURATION_UNKNOWN(Code) | | |
LOW_PASS | final public static int LOW_PASS(Code) | | |
NO_FILTERING | final public static int NO_FILTERING(Code) | | Distance Filter
Each sound source is attenuated by a filter based on it's distance
from the listener.
For now the only supported filterType will be LOW_PASS frequency
cutoff.
At some time full FIR filtering will be supported.
|
NULL_SAMPLE | final public static int NULL_SAMPLE(Code) | | Null Sound identifier denotes sound is not created or initialized
|
angularDistance | protected double[] angularDistance(Code) | | Directional Sound's gain can be attenuated based on the listener's
location off-angle from the source source direction.
This can be set by three parameters:
angular distance in radians
gain scale factor
filtering (currently the only filtering supported is lowpass)
|
angularFilterCutoff | protected float[] angularFilterCutoff(Code) | | |
angularFilterType | protected int angularFilterType(Code) | | |
angularGain | protected float[] angularGain(Code) | | |
attenuationDistance | protected double[] attenuationDistance(Code) | | |
attenuationGain | protected float[] attenuationGain(Code) | | |
backAttenuationDistance | protected double[] backAttenuationDistance(Code) | | Pairs of distances and gain scale factors that define piecewise linear
gain BACK attenuation between each pair.
These are used for defining elliptical attenuation regions.
|
backAttenuationGain | protected float[] backAttenuationGain(Code) | | |
debugFlag | final protected static boolean debugFlag(Code) | | |
direction | protected Vector3f direction(Code) | | The Cone Sound's direction vector. This is the cone axis.
|
dirtyFlags | protected int dirtyFlags(Code) | | dirty flags denoting what has changed since last rendering
|
duration | protected long duration(Code) | | |
gain | protected float gain(Code) | | Overall Scale Factor applied to sound gain.
|
internalErrors | final protected static boolean internalErrors(Code) | | |
loopCount | protected int loopCount(Code) | | Number of times sound is looped/repeated during play
|
mute | protected boolean mute(Code) | | |
numberOfChannels | protected int numberOfChannels(Code) | | |
obstructionFilterCutoff | protected float obstructionFilterCutoff(Code) | | |
obstructionFilterType | protected int obstructionFilterType(Code) | | |
obstructionGain | protected float obstructionGain(Code) | | |
occlusionFilterCutoff | protected float occlusionFilterCutoff(Code) | | |
occlusionFilterType | protected int occlusionFilterType(Code) | | |
occlusionGain | protected float occlusionGain(Code) | | |
position | protected Point3f position(Code) | | |
rateScaleFactor | protected float rateScaleFactor(Code) | | Overall Scale Factor applied to sound.
since: Java 3D 1.3 |
soundType | protected int soundType(Code) | | sound data associated with sound source
|
vwXfrmFlag | protected boolean vwXfrmFlag(Code) | | |
clear | public void clear()(Code) | | Clears/re-initialize fields associated with sample data
for this sound,
and frees any device specific data associated with this sample.
|
debugPrintln | protected void debugPrintln(String message)(Code) | | |
getDirtyFlags | public int getDirtyFlags()(Code) | | |
getDuration | public long getDuration()(Code) | | |
getGain | public float getGain()(Code) | | |
getLoopCount | public int getLoopCount()(Code) | | |
getMuteFlag | public boolean getMuteFlag()(Code) | | |
getNumberOfChannelsUsed | public int getNumberOfChannelsUsed()(Code) | | |
getObstructionGain | public float getObstructionGain()(Code) | | |
getOcclusionGain | public float getOcclusionGain()(Code) | | |
getRateScaleFactor | public float getRateScaleFactor()(Code) | | |
getSoundType | public int getSoundType()(Code) | | |
getStartTime | public long getStartTime()(Code) | | |
getVWrldXfrmFlag | public boolean getVWrldXfrmFlag()(Code) | | |
setAngularAttenuation | public void setAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)(Code) | | |
setDirection | public void setDirection(Vector3d direction)(Code) | | |
setDirtyFlags | public void setDirtyFlags(int flags)(Code) | | |
setDistanceGain | public void setDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)(Code) | | |
setGain | public void setGain(float scaleFactor)(Code) | | |
setLoopCount | public void setLoopCount(int count)(Code) | | |
setMuteFlag | public void setMuteFlag(boolean flag)(Code) | | |
setObstructionFilter | public void setObstructionFilter(float cutoffFrequency)(Code) | | |
setObstructionGain | public void setObstructionGain(float scaleFactor)(Code) | | |
setOcclusionFilter | public void setOcclusionFilter(float cutoffFrequency)(Code) | | |
setOcclusionGain | public void setOcclusionGain(float scaleFactor)(Code) | | |
setPosition | public void setPosition(Point3d position)(Code) | | |
setRateScaleFactor | public void setRateScaleFactor(float scaleFactor)(Code) | | |
setSoundType | public void setSoundType(int type)(Code) | | |
setVWrldXfrmFlag | public void setVWrldXfrmFlag(boolean flag)(Code) | | |
|
|
|