public class JOALSample extends Sample
Modifier and Type | Field and Description |
---|---|
static int |
DURATION_UNKNOWN |
static int |
LOW_PASS |
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
|
Constructor and Description |
---|
JOALSample()
Creates a new instance of JOALSample
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data
associated with this sample.
|
com.jogamp.openal.AL |
getAl() |
int[] |
getBuffer() |
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() |
boolean |
load(com.jogamp.openal.AL al,
int[] buffer,
int soundType)
Load the sound ready to by played reusing the shared buffer.
|
boolean |
load(com.jogamp.openal.AL al,
MediaContainer soundData,
int soundType)
Load the sound ready to by played.
|
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) |
int |
startSample() |
int |
stopSample() |
public static final int NULL_SAMPLE
public static final int DURATION_UNKNOWN
public static final int NO_FILTERING
public static final int LOW_PASS
public long getDuration()
getDuration
in class Sample
public long getStartTime()
getStartTime
in class Sample
public int getNumberOfChannelsUsed()
getNumberOfChannelsUsed
in class Sample
public void setDirtyFlags(int flags)
setDirtyFlags
in class Sample
public int getDirtyFlags()
getDirtyFlags
in class Sample
public void setSoundType(int type)
setSoundType
in class Sample
public int getSoundType()
getSoundType
in class Sample
public void setSoundData(MediaContainer ref)
setSoundData
in class Sample
public MediaContainer getSoundData()
getSoundData
in class Sample
public void setMuteFlag(boolean flag)
setMuteFlag
in class Sample
public boolean getMuteFlag()
getMuteFlag
in class Sample
public void setVWrldXfrmFlag(boolean flag)
setVWrldXfrmFlag
in class Sample
public boolean getVWrldXfrmFlag()
getVWrldXfrmFlag
in class Sample
public void setLoopCount(int count)
setLoopCount
in class Sample
public int getLoopCount()
getLoopCount
in class Sample
public void setPosition(Point3d position)
setPosition
in class Sample
public void setDistanceGain(double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)
setDistanceGain
in class Sample
public void setDirection(Vector3d direction)
setDirection
in class Sample
public void setAngularAttenuation(int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)
setAngularAttenuation
in class Sample
public void setRateScaleFactor(float scaleFactor)
setRateScaleFactor
in class Sample
public float getRateScaleFactor()
getRateScaleFactor
in class Sample
public void setObstructionGain(float scaleFactor)
setObstructionGain
in class Sample
public float getObstructionGain()
getObstructionGain
in class Sample
public void setObstructionFilter(float cutoffFrequency)
setObstructionFilter
in class Sample
public void setOcclusionGain(float scaleFactor)
setOcclusionGain
in class Sample
public float getOcclusionGain()
getOcclusionGain
in class Sample
public void setOcclusionFilter(float cutoffFrequency)
setOcclusionFilter
in class Sample
public void clear()
public void render(int dirtyFlags, View view, AuralParameters attribs)
public boolean load(com.jogamp.openal.AL al, MediaContainer soundData, int soundType)
public boolean load(com.jogamp.openal.AL al, int[] buffer, int soundType)
public int startSample()
public int stopSample()
public com.jogamp.openal.AL getAl()
public int[] getBuffer()