Previous Up Next

as3dSndGetDistance
Returns the values of the maximum and minimum 3D sound reading distances.

[I I] as3dSndGetDistance (
S3d _session_
H3d _obj_
)
Parameters

_session_
3D Session.
_obj_
Applicable H3d.
Return value

A tuple [ min max ], or nil in case of a failure.
  • min: Distance from the source at which the sound is no longer played.
    Default value: nil, corresponding to an infinite maximum value.
  • max: Distance from the source at which the sound starts to be attenuated per the attenuation factor applied by the as3dListenerSetRollOff method.
    Default value: 100.
  • Remark

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

    as3dSndSetDistance
    as3dListenerSetRollOff