|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.audioengines.AudioEngine
com.sun.j3d.audioengines.AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3DL2
public abstract class AudioEngine3DL2
The AudioEngine3DL2 Class defines an audio output device that generates sound 'image' from high-level sound parameters passed to it during scene graph.
The methods in this class are meant to be optionally overridden by an extended class. This extended class would provice device specific code.
Error checking on all parameters passed to these methods is already explicitly being done by the Java 3D core code that calls these methods.
These methods should NOT be called by any application if the audio engine is associated with a Physical Environment used by Java3D Core.
Field Summary |
---|
Fields inherited from interface javax.media.j3d.AudioDevice3D |
---|
BACKGROUND_SOUND, BUFFERED_AUDIO_DATA, CONE_SOUND, POINT_SOUND, STREAMING_AUDIO_DATA |
Fields inherited from interface javax.media.j3d.AudioDevice |
---|
HEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS |
Constructor Summary | |
---|---|
AudioEngine3DL2(javax.media.j3d.PhysicalEnvironment physicalEnvironment)
Construct a new AudioEngine3DL2 with the specified PhysicalEnvironment. |
Method Summary | |
---|---|
abstract void |
pause()
Pauses audio device engine without closing the device and associated threads. |
abstract void |
resume()
Resumes audio device engine (if previously paused) without reinitializing the device. |
void |
setDecayFilter(float frequencyCutoff)
Set reverb decay filter. |
void |
setDecayTime(float time)
Set reverb decay time. |
void |
setDensity(float density)
Set reverb density. |
void |
setDiffusion(float diffusion)
Set reverb diffusion. |
abstract void |
setGain(float scaleFactor)
Set overall gain control of all sounds playing on the audio device. |
void |
setObstructionFilter(int index,
float frequencyCutoff)
Set the obstruction filter control. |
void |
setObstructionGain(int index,
float scaleFactor)
Set the obstruction gain control. |
void |
setOcclusionFilter(int index,
float frequencyCutoff)
Set the occlusion filter control. |
void |
setOcclusionGain(int index,
float scaleFactor)
Set the occlusion gain control. |
void |
setRateScaleFactor(int index,
float scaleFactor)
Set scale factor applied to sample playback rate for a particular sound associated with the audio device. |
void |
setReflectionDelay(float reflectionDelay)
Sets the early reflection delay time. |
void |
setReverbCoefficient(float coefficient)
Set late reflection (referred to as 'reverb') attenuation. |
Methods inherited from class com.sun.j3d.audioengines.AudioEngine3D |
---|
clearSound, getAuralParameters, getNumberOfChannelsUsed, getNumberOfChannelsUsed, getSample, getSampleDuration, getSampleListSize, getStartTime, getView, muteSample, pauseSample, prepareSound, setAngularAttenuation, setDirection, setDistanceFilter, setDistanceGain, setFrequencyScaleFactor, setLoop, setPosition, setReflectionCoefficient, setReverbDelay, setReverbOrder, setRolloff, setSampleGain, setVelocityScaleFactor, setView, setVworldXfrm, startSample, stopSample, unmuteSample, unpauseSample, updateSample |
Methods inherited from class com.sun.j3d.audioengines.AudioEngine |
---|
close, getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, getTotalChannels, initialize, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeaker |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.media.j3d.AudioDevice3D |
---|
clearSound, getNumberOfChannelsUsed, getNumberOfChannelsUsed, getSampleDuration, getStartTime, muteSample, pauseSample, prepareSound, setAngularAttenuation, setDirection, setDistanceFilter, setDistanceGain, setFrequencyScaleFactor, setLoop, setPosition, setReflectionCoefficient, setReverbDelay, setReverbOrder, setRolloff, setSampleGain, setVelocityScaleFactor, setView, setVworldXfrm, startSample, stopSample, unmuteSample, unpauseSample, updateSample |
Methods inherited from interface javax.media.j3d.AudioDevice |
---|
close, getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, getTotalChannels, initialize, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeaker |
Constructor Detail |
---|
public AudioEngine3DL2(javax.media.j3d.PhysicalEnvironment physicalEnvironment)
physicalEnvironment
- the physical environment object where we
want access to this device.Method Detail |
---|
public abstract void pause()
pause
in interface javax.media.j3d.AudioDevice3DL2
public abstract void resume()
resume
in interface javax.media.j3d.AudioDevice3DL2
public abstract void setGain(float scaleFactor)
setGain
in interface javax.media.j3d.AudioDevice3DL2
scaleFactor
- scale factor applied to calculated amplitudes for
all sounds playing on this devicepublic void setRateScaleFactor(int index, float scaleFactor)
setRateScaleFactor
in interface javax.media.j3d.AudioDevice3DL2
index
- device specific reference to device driver samplescaleFactor
- non-negative factor applied to calculated
amplitudes for all sounds playing on this deviceSound.setRateScaleFactor(float)
public void setReverbCoefficient(float coefficient)
setReverbCoefficient
in interface javax.media.j3d.AudioDevice3DL2
coefficient
- late reflection attenuation factorAuralAttributes.setReverbCoefficient(float)
public void setReflectionDelay(float reflectionDelay)
setReflectionDelay
in interface javax.media.j3d.AudioDevice3DL2
reflectionDelay
- time between each order of early reflectionAuralAttributes.setReflectionDelay(float)
public void setDecayTime(float time)
setDecayTime
in interface javax.media.j3d.AudioDevice3DL2
time
- decay time in millisecondsAuralAttributes.setDecayTime(float)
public void setDecayFilter(float frequencyCutoff)
setDecayFilter
in interface javax.media.j3d.AudioDevice3DL2
frequencyCutoff
- value of frequencies in Hertz above which a
low-pass filter is applied.AuralAttributes.setDecayFilter(float)
public void setDiffusion(float diffusion)
setDiffusion
in interface javax.media.j3d.AudioDevice3DL2
diffusion
- percentage expressed within the range of 0.0 and 1.0AuralAttributes.setDiffusion(float)
public void setDensity(float density)
setDensity
in interface javax.media.j3d.AudioDevice3DL2
density
- reverb density expressed as a percentage,
within the range of 0.0 and 1.0AuralAttributes.setDensity(float)
public void setObstructionGain(int index, float scaleFactor)
setObstructionGain
in interface javax.media.j3d.AudioDevice3DL2
index
- device specific reference to device driver samplescaleFactor
- non-negative factor applied to direct sound gainpublic void setObstructionFilter(int index, float frequencyCutoff)
setObstructionFilter
in interface javax.media.j3d.AudioDevice3DL2
index
- device specific reference to device driver samplefrequencyCutoff
- value of frequencies in Hertz above which a
low-pass filter is applied.public void setOcclusionGain(int index, float scaleFactor)
setOcclusionGain
in interface javax.media.j3d.AudioDevice3DL2
index
- device specific reference to device driver samplescaleFactor
- non-negative factor applied to direct sound gainpublic void setOcclusionFilter(int index, float frequencyCutoff)
setOcclusionFilter
in interface javax.media.j3d.AudioDevice3DL2
index
- device specific reference to device driver samplefrequencyCutoff
- value of frequencies in Hertz above which a
low-pass filter is applied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |