public abstract class AudioEngine3DL2 extends AudioEngine3D implements AudioDevice3DL2
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.
BACKGROUND_SOUND, BUFFERED_AUDIO_DATA, CONE_SOUND, POINT_SOUND, STREAMING_AUDIO_DATAHEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS| Constructor and Description |
|---|
AudioEngine3DL2(PhysicalEnvironment physicalEnvironment)
Construct a new AudioEngine3DL2 with the specified PhysicalEnvironment.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, updateSampleclose, getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, getTotalChannels, initialize, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeakerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearSound, 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, updateSampleclose, getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, getTotalChannels, initialize, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeakerpublic AudioEngine3DL2(PhysicalEnvironment physicalEnvironment)
physicalEnvironment - the physical environment object where we
want access to this device.public abstract void pause()
pause in interface AudioDevice3DL2public abstract void resume()
resume in interface AudioDevice3DL2public abstract void setGain(float scaleFactor)
setGain in interface AudioDevice3DL2scaleFactor - scale factor applied to calculated amplitudes for
all sounds playing on this devicepublic void setRateScaleFactor(int index,
float scaleFactor)
setRateScaleFactor in interface AudioDevice3DL2index - 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 AudioDevice3DL2coefficient - late reflection attenuation factorAuralAttributes.setReverbCoefficient(float)public void setReflectionDelay(float reflectionDelay)
setReflectionDelay in interface AudioDevice3DL2reflectionDelay - time between each order of early reflectionAuralAttributes.setReflectionDelay(float)public void setDecayTime(float time)
setDecayTime in interface AudioDevice3DL2time - decay time in millisecondsAuralAttributes.setDecayTime(float)public void setDecayFilter(float frequencyCutoff)
setDecayFilter in interface AudioDevice3DL2frequencyCutoff - value of frequencies in Hertz above which a
low-pass filter is applied.AuralAttributes.setDecayFilter(float)public void setDiffusion(float diffusion)
setDiffusion in interface AudioDevice3DL2diffusion - percentage expressed within the range of 0.0 and 1.0AuralAttributes.setDiffusion(float)public void setDensity(float density)
setDensity in interface AudioDevice3DL2density - 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 AudioDevice3DL2index - device specific reference to device driver samplescaleFactor - non-negative factor applied to direct sound gainpublic void setObstructionFilter(int index,
float frequencyCutoff)
setObstructionFilter in interface AudioDevice3DL2index - 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 AudioDevice3DL2index - device specific reference to device driver samplescaleFactor - non-negative factor applied to direct sound gainpublic void setOcclusionFilter(int index,
float frequencyCutoff)
setOcclusionFilter in interface AudioDevice3DL2index - device specific reference to device driver samplefrequencyCutoff - value of frequencies in Hertz above which a
low-pass filter is applied.