Previous Up Next

as3dSndSetDistance
Modifies the values of the minimum and maximum distances for 3D sound reading.

H3d as3dSndSetDistance (
S3d _session_
H3d _obj_
I _min_
I _max_
)
Parameters

_session_
3D Session.
_obj_
Applicable H3d.
_min_
Distance from the source at which the sound starts to be attenuated per the attenuation factor applied by the as3dListenerSetRollOff method.
Default value: 100.
_max_
Distance from the source at which the sound is no longer played.
Default value: nil, corresponding to an infinite maximum value.
Return value

The H3d given as a parameter, or nil in case of failure.
Remark

The values '_min_' and '_max_' are at the same scale as the distances in the 3D engine.
See Also

as3dSndGetDistance
as3dListenerSetRollOff