Class spatialAudio.SoundSourceModel
All Packages Class Hierarchy This Package Previous Next Index
Class spatialAudio.SoundSourceModel
java.lang.Object
|
+----spatialAudio.SoundSourceModel
- public class SoundSourceModel
- extends Object
The SoundSourceModel class describes the directionality, extent, and intensity
of a sound source.
A sound's directionality and extent are defined by two
ellipsoids. The location of the sound source is one focus of each
ellipse.
Inside the ellipsoid defined by the minBack and the minFront ranges,
the sound is a constant (maximum) intensity and contains no directional
information. This region models what we would normally consider ambient
sounds.
The maxBack and maxFront parameters define a second ellipsoid that bounds
the threshold of hearing for a particular sound. Outside that range,
the sound is not audible. Between the two ellipsoids, the sound is
directional and the intensity ranges between the maximum and minimum
intensity values. The max and min range values are useful for controlling
the directionality of a sound. If set equal, the sound will have no
directionality. The greater the ratio of the max range value to the
min range value, the more directional the sound will appear. The front
values must not be smaller than the associated back values.
For more information, refer to the
spatialAudio Package User's Guide.
Copyright (c) 1996 Intel Corporation
- See Also:
- SoundSource
-
intensity
- Scaling factor on the sound volume (normally between 0 and 1).
-
maxBack
- Maximum audible distance behind the sound source.
-
maxFront
- Maximum audible distance in front of the sound source.
-
minBack
- Extent of the ambient region behind the sound source.
-
minFront
- Extent of ambient region in front of the sound source.
-
SoundSourceModel()
- Creates a new SoundSourceModel object.
-
SoundSourceModel(float, float, float, float, float)
- Creates a new SoundSourceModel object with the specified values.
-
toString()
- Returns a String representation of the SoundSourceModel instance variables.
minFront
public float minFront
- Extent of ambient region in front of the sound source.
minBack
public float minBack
- Extent of the ambient region behind the sound source.
maxFront
public float maxFront
- Maximum audible distance in front of the sound source.
maxBack
public float maxBack
- Maximum audible distance behind the sound source.
intensity
public float intensity
- Scaling factor on the sound volume (normally between 0 and 1).
SoundSourceModel
public SoundSourceModel()
- Creates a new SoundSourceModel object. The values of all variables
are initialized to zero and must be set to the desired values before
the model is applied to a sound source.
SoundSourceModel
public SoundSourceModel(float minFront,
float minBack,
float maxFront,
float maxBack,
float intensity)
- Creates a new SoundSourceModel object with the specified values.
toString
public String toString()
- Returns a String representation of the SoundSourceModel instance variables.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index