Adding sound
ConeSound class methods
- Methods on ConeSound aim the sound, set its distance
gain front and back, and control angular attenuation
- By default, cone sounds are aimed in the positive Z direction
with no distance or angular attenuation
Method |
ConeSound( ) |
void setDirection( Vector3f dir ) |
void setDistanceGain( Point2f[] front, Point2f[] back ) |
void setBackDistanceGain( Point2f[] back ) |
void setAngularAttenuation( Point3f[] atten ) |
- Attenuation angles are in the range 0.0 to PI radians